Operating Systems

Lock folder without any software

Sending
User Rating 5 (2 votes)

Sooner or later, you may require an application to lock down your important folder. So, why not to lock and unlock folder without any application. Just follow few simple steps and your work will be done.folder-lock-logoSooner or later, you may require an application to lock down your important folder. So, why not to lock and unlock folder without any application.  Just follow few simple steps and your work will be done.

Method 1:

Step 1: open your favorite editor and type: ren foldername foldername.{21EC2020-3AEA-1069-A2DD-08002B30309D}

Step 2: Save it as lock.bat or whatever name you wish to give but .bat extension should be there.

Step 3: Open text editor again and type: ren  foldername.{21EC2020-3AEA-1069-A2DD-08002B30309D} foldername

Step 4: Save it as key.bat or whatever name you wish to give but .bat extension should be there. Now double click on lock.bat to lock “foldername” and double click on key.bat to unlock “foldername”. For ex: say my foldername is jassi then just replace the word foldername to jassi. At one time you can use lock and key batch file for locking one folder only.

Method 2:

As we saw in method 1, that only one folder will work at one time and if someone knows about key.bat, he/she can unlock that folder. So better to have .exe or .com .bat file which can lock or unlock  any folder at your wish with initialized password that only you would know.

Step 1:

Open your favorite editor and type:

cls @ECHO off title Folder Locker color A echo Which folder you want to lock or unlock? set/p "folder=>" if EXIST "%folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST %folder% goto MDfolder :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. sleep 1 cls goto CONFIRM :LOCK ren %folder% "%folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "%folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}" cls color C echo Folder locked sleep 2 goto End :UNLOCK echo Enter password to Unlock folder set/p "password=>" if NOT %password%==jassi  goto FAIL attrib -h -s "%folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "%folder%.{21EC2020-3AEA-1069-A2DD-08002B30309D}" %folder% echo Folder Unlocked successfully sleep 2 goto End :FAIL cls color 4A echo Invalid password goto UNLOCK :MDfolder cls echo %folder% was not there so md %folder% echo %folder% created successfully sleep 2 :End

Step 2:

Save it as locker.bat or any name but be sure that extension is .bat and yeah before saving it change password according to your ease. Right now its jassi . Find that keyword and change as you wish. Now double click on locker.bat, one command prompt will come and will ask for folder to lock and unlock. If folder is not there it will create too. It will not unlock unless and until you give correct password.
Being .bat extension people may edit it so at that time you may wish to change it in .com or .exe extension. You can do that by downloading  Bat_To_Exe_Converter.exe which is free ofcourse.


Note: Main important thing to note here {21EC2020-3AEA-1069-A2DD-08002B30309D} , its  nothing just the address of control panel. So We renamed our folder as control panel destination, which means if you click on that locked folder now. It will open control panel. Hope you will enjoy it!!!

Share your Thoughts