SET A PASSWORD FOR A FOLDER IN WINDOWS

This is something new " HIDING"
As simple hiding can be viewed by any one , because it doesn't need any password we are gonna learn a next step " setting password for a Folder "
Yes , we hide a folder in Microsoft Windows ( for any version )
Just follow these steps and enjoy
1 first of all we dont need to create any folder . copy that code and paste into the notepad and save as Windows Batch File ( .bat )
2 Then save it to your desired location .
3 Now open it , it asks you the password : ( demo123) enter it
4 You will find a folder named locker . move your files into it
5 Again open this bat file then it asks you to hide the folder then click y and enjoy the folder is hidden .
The code is
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo enter your password
set/p "pass=>"
if NOT %pass%==demo123 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
set/p "x"
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
copy all the code till end .
Follow these pictures :



~~~~~~~~ save to your desired loaction ~~~~~~~




congo your folder is hidden !!!!!
Well if you want your own password
then just
1 Right click on the file
2 click edit
3 Opens in a notepad automatically the search for our old password ( demo123) and now delete it and in that place save your desired one and save
The process is


then type your own one and save
then it accepts your password !!!!!!!
Comments
Post a Comment