1.Create "New text document" any place in your desktop
2- Copy code below and paste it in the document which you created
Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" 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-08002B30309 D}"
attrib +h +s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
ren "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker echo Locker created successfully
goto End
:End
3. Replace words "type your password" in the code with desired password
4. Select Save As and save with name "Locker.bat". A bat file will created
5. Open file "Locker.bat", it will automatically create a folder named "Locker"
6. Put which you want to hide in folder "Locker"
7. Also a you will see a window which tells if you want to protect folder. Enter "Y" for yes.
Folder will disappear.
8 Unlock the folder by opening "Locker.bat" then entering password.
Note : Rename the folder by editing text code
No comments:
Post a Comment