| |||||||||||||||||
| |||
| Many people have been looking for an alternative way to lock folders without the use of any alternative software.. Stpes: 1)Open a Notepad and copy the below code and save as Locker.bat wherever you want. 2)After saved the Locker batch file, Right click the batch file select Edit option. 3)Change the password inside the file into your own password. 4)i.e. Find Type your own Password here textand Replace withyour own password, keep it in mind. 5)Now double click on Locker.bat for first time to start, it will create folder named as Locker automatically for you. 6)After creation of the Locker folder, place the contents u want to lock inside the Locker Folder. 7)Come out the Locker folder and double click the Locker.bat again. 9)When you want to unlock the folder again, double click the Locker.bat again. 10)It will ask, Enter password to Unlock folder, Give the password which you have specifed. 11)Now the Locker folder will be visible to you. 12)You can continue the same logic again to lock the folder. Code for Batch file: 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%== Type your own 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 |
| |||
| Its Just great i've been looking for this sort of thing from a long long time thanks a lot for posting this ~Abha |
| ||||
| Its as good as locking a door with a hi-tech 10 digit number lock and pasting the passcode on a big banner just next to the lock. Anyone who has slightest knowledge can open the batch file and know you password plus take all your data.....It would be meaningful if you put this code to say some VB/.NET executable/dll and distribute. Quote:
__________________ Dont work hard... Work Smart |
| ||||
| Hi Sravanthi, If you right click on the Locker.bat file and use "Open with" option and select "notepad" or any other text editor, your password will be visible to you. Maybe you can modify the code to give and exe file. |
![]() ![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cleaning Temp folder | Nivedi | Personal Technology | 2 | 14th February 2008 02:21 PM |
| Software Eng.......? | krishnaamma | Forward Messages & Jokes | 2 | 8th October 2007 02:22 PM |