Ressacca

Folder lock without any software

This trick enables the user to put a lock on a folder and hide it without any software.
For that you need to follow these simple steps-

  1. Paste the code that is given below in a notepad and save that as a batch file( Extension- '.bat')
  2. Any name could be given to that file.
  3. Now a batch file would be formed, double click on it and a new folder with a name 'Locker' would be formed at the same location.
  4. Now bring all the files you want to hide to this folder.
  5. Double click the batch file and type 'y' and press enter to lock the folder.
  6. If you want to open the folder, double click the batch file again and type anything and press enter, your folder will be visible again.
  7. And to lock it back follow the 5th step.
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%==type 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
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Leave a Reply