- First of all you make a folder in your desired location as like i make a folder on desktop by name of Personal or something
- After that open NotePad and paste below code
- Code Here
cls
@ECHO OFF
title Folder Personal
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if Not EXIST Personal 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%==Y goto END
echo invalid choice.
goto CONFIRM
:LOCK
ren personal "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 password to unlock folder
set/p "pass=>"
if Not %pass%== eyes goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder unlocked successfully
goto End
:FAIL
echo Invalid password
goto unlock2
:FAIL2
echo Invalid password
goto End
:MDLOCKER
@ECHO OFF
title Folder Personal
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if Not EXIST Personal 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%==Y goto END
echo invalid choice.
goto CONFIRM
:LOCK
ren personal "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 password to unlock folder
set/p "pass=>"
if Not %pass%== eyes goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder unlocked successfully
goto End
:FAIL
echo Invalid password
goto unlock2
:FAIL2
echo Invalid password
goto End
:MDLOCKER
- Now Save this file in your desired folder location with name of Key.bat and hit save
- But becarefull the locaton of folder and key.bat file must be same like
Location must be same of both Like this
Folder Location
C:\Documents and Settings\Administrator\Desktop\Personal
Key.bat File location
C:\Documents and Settings\Administrator\Desktop\key.bat
- Now click on key.bat file and press y then hit enter your folder will be hide
- Now if you want to recover your folder then again click on key.bat file and give your password then hit enter. You will be able to see your folder once again
- You can replace your desired folder name on red text
- You can replace your desired password on blue text
Post a Comment