|
Sometimes you have been asking for an alternative way to lock folders without the use of any alternative software. It’ll 5 steps ahead only, check now!
IN notepadcopy the code below.
The default password is “nagaraju”.
Save this file as “locker.bat”.
Now double click on locker.bat.
I t will create a folder named: NagRaz with automatic lock. After creation of the folder, place the contents (your files & folders) you wants to lock inside the Folder and double click locker.bat again. It will ask to lock the folder Y/N. If you press y then it will lock the folder and your folder will be hide. To unlock run again locker.bat, it will ask to enter password, type in correct password and you can see your folder back.
Please don’t change anything except password, otherwise this lock may does not work.
------------------- starts line below----------------------------- cls @ECHO OFF title Folder Locker if EXIST "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" goto UNLOCK if NOT EXIST NagRaz goto MDBLOG2BEST :CONFIRM echo Are you sure to Lock this 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 NagRaz "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 Your Secure Folder set/p "pass=>" if NOT %pass%== nagaraju goto FAIL attrib -h -s "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" ren "Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}" NagRaz echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDBLOG2BEST md NagRaz echo Locker created successfully goto End :End
----------------------Code ends line above-------------------
|