Folder Lock Without Any SoftWare

October 27, 2007 6:59am CST
Many people have been looking for an alternative way to lock folders without the use of any alternative software. So, here you go. Open Notepad and copy the below code and save as "locker.bat" Please don't forget to change your password in the code. It's shown the place where to type your password. Now double click on "locker.bat" file For the first time, it will create a folder with the name "Locker" automatically for you. After creation of the "Locker" folder, place the contents you want to lock inside the "Locker" folder and run once again the "locker.bat" file. "Locker" folder will be locked and it will not be visible. To Unlock the same, run once again the "locker.bat" file. This time it will ask for the password. Type the password what you have keyed inside the "locker.bat" file. Now the "Locker" folder is unlocked and you can see the same and also the contents within it. Here is the code: 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 Password to Unlock Folder set/p "pass=" if NOT %pass%=="[YOUR PASSWORD HERE]" 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 goto End :FAIL echo Invalid Password got End :MDLOCKER md Locker echo Locker Created Successfully goto End :End
1 response
• Singapore
28 Oct 07
THANKS ALOT MAN! Been looking for this. 2 thumbs up!