
Недавно появилась у меня задача заблокировать папку паролем, понятное дело в интернете много программ, но все они работают по принципу простого скрытия папки или в программе просто лежит вирус. И как обычно я нашел как все сделать ручками, немного покодив, вот инструкция:
1) Open your notepad in your Windows.
2) Copy the below code completely in your notepad. Starting from cls to End.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
cls @ECHO OFF title FastTechBuzz.com if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST MyFolder goto MDMyFolder :CONFIRM echo ------------------------------------------ echo This Trick is Provided by FastTechBuzz.com echo ------------------------------------------- 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 MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo ---------------------------------------------- echo Vist FastTechBuzz.com for more tips and tricks echo ---------------------------------------------- echo Enter password to Unlock Your Secure Folder set/p "pass=>" if NOT %pass%== fasttechbuzz goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder echo Folder Unlocked successfully by fasttechbuzz.com goto End :FAIL echo Invalid password goto end :MDMyFolder md MyFolder echo MyFolder created successfully goto End :End |
3) Now save this file as any filename.bat .bat extension is must without that extension this method will not work. You can give whatever file name you wanted.
4) After saving this file open it and a new folder will be created called MyFolder. Now take all your personal folders, documents,pictures, videos whatever you wanted to lock and move them in to MyFolder.
5) Again double click on filename.bat >> Then you will see a command prompt like below image. Then press Y to lock your folder.
6) To unlock the folder again double click on the filename.bat you will be asked to enter your password as shown in
figure below. The default password will be fasttechbuzz.
How to change default password?
If you want to change your password replace fasttechbuzz with your password which is highlighted with blue color in the above snippet of code.
Watch This Tutorial now.Watch it on Full Screen.
Caution: Don’t change any code other than password. To unlock folders which were hidden you should place the filename.bat file in the same location where your files were hidden.
Источник: http://fasttechbuzz.com