Search the Community
Showing results for tags 'folder lock how to'.
Found 1 result
-
Well maybe some of you know how to do this, but this tutorial is for those who don't But I think most people don't know. It's kind of a trick, using batch files (files that are with .bat extension). So lets get start... Working on every Windows OS 1st step: Open Notepad: Start > All Programs > Accessories > Notepad 2nd step: Paste this code in the New Text Document cls@ECHO OFFtitle Folder lockerif EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCKif NOT EXIST locker goto MDlocker:CONFIRMecho Are you sure that you want to lock the folder? (Y/N)set/p "cho=>"if %cho%==Y goto LOCKif %cho%==y goto LOCKif %cho%==n goto ENDif %cho%==N goto ENDecho Wrong Choice!goto CONFIRM:LOCKren locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"echo The folder is locked!goto End:UNLOCKecho Type the password to lock out the folderset/p "pass=>"if %pass%== [color=#ff0000]pass[/color] goto SUCCESSFUL:FAILecho Wrong Password!goto end:SUCCESSFULattrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" lockerecho Folder is locked out successfullygoto End:MDlockermd lockerecho locker is successfully createdgoto End:End 3rd step:Modify 23rd line by your own choice || if %pass%== pass goto SUCCESSFUL || << replace pass with the password that you want and don't forget you will need to type it later to unlock the folder 4th step: Save the new text document file as locker.bat 5th step: Make folder called locker or just run the file you saved locker.bat (it will create folder called locker by itself) The folder is not visible now and its locked To unlock just run locker.bat again. You will be asked for password to unlock the folder. NOTE: THE FOLDER LOCKER AND THE FILE LOCKER.BAT MUST BE IN THE SAME LOCATION. THAT'S HOW THE CODE IT'S WRITTEN. Shown through pictures >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hope you enjoyed