Lock a Folder Using a Batch File
Revision as of 14:26, 8 September 2022 by Kipkis (Kipkis | contribs) (Text replacement - "[[Category: H" to "[[Category:H")
Have you ever had the need for a protected folder, but didn't want to use Window's basic security? Then create your own!
Steps
- Open Notepad.
- Copy the code. Just like the image above.
- Change the password. Where it says "type your password here", change it to your desired password.
- Save the file with name "locker.bat" and as all types and click "Save".
- Close the window.
- Run the "Locker" file by double-clicking it. You will get a folder named Locker.
- Move all the things you want to hide and again run locker.bat.
- Double click on the locker.bat again. A Command Prompt will open, it will ask you to lock the folder. Type Y then press enter.
- Done. No one can access your folder without the password.
Video
Template:Video:Lock a Folder Using a Batch File
Tips
- You need to store your password carefully.
- If you copy and paste directly from wikiHow while in edit mode, make sure to remove the "#" and any spaces at the start of each line.
- Set the hidden attribute on the file so it will not show up in a standard Windows Explorer search.
- Do not rename the file after it is secured. It will no longer be protected.
- Windows Search could find it.
Warnings
- Someone who really understands batch files can figure out your password. If you really need to protect your data then you should encrypt it.Or you can use a 3rd-party program that turns batch files to executables ones so they can't edit the batch and know the password.
- Programs like 7zip File Manager will be able to access the folder.