How to Lock a Folder on Windows
This wikiHow teaches you how to hide files in a secret locked folder in Windows 10. Press . This opens the File Explorer.
Part 1 of 4:
Creating a Lock File
-
How to Lock a Folder on Windows Picture 1
Press ⊞ Win+E. This opens the File Explorer. -
How to Lock a Folder on Windows Picture 2
Double-click the folder you want to lock. This opens the contents of the folder. -
How to Lock a Folder on Windows Picture 3
Right-click an empty part of the folder. A menu will appear. -
How to Lock a Folder on Windows Picture 4
Click New. A list of file types will appear. -
How to Lock a Folder on Windows Picture 5
Click Text Document. -
How to Lock a Folder on Windows Picture 6
Type lock and press ↵ Enter. You now have a text file called 'lock' in the current folder. -
How to Lock a Folder on Windows Picture 7
Double-click the 'lock' file. This opens the blank file in your default text editor (e.g. Notepad). You'll need to paste some code into this file.
Part 2 of 4:
Adding the Lock Code
-
How to Lock a Folder on Windows Picture 8
Open a web browser. You can use any web browser on your computer, such as Edge, Chrome, or Firefox. -
How to Lock a Folder on Windows Picture 9
Navigate to https://www.laptopmag.com/articles/password-protect-folder-windows-10. This is the site from which you can copy the code.[1] -
How to Lock a Folder on Windows Picture 10
Scroll down to the code that begins with 'cls @ECHO OFF.' The code begins right after the 6th step in the article. -
How to Lock a Folder on Windows Picture 11
Copy all of the code. To do this, click the mouse before 'cls' and then drag it all the way to the end of the code, then press Ctrl+C. -
How to Lock a Folder on Windows Picture 12
Return to the 'lock' file that's open in your text editor. The file should be blank. -
How to Lock a Folder on Windows Picture 13
Click the mouse cursor in the file and press Ctrl+V. The copied code will appear in the file. -
How to Lock a Folder on Windows Picture 14
Locate and highlight Your-Password-Here. If you're having a hard time finding it, press Ctrl+F to open the Search tool, type your-password-here into the box, then press ↵ Enter. The text should automatically highlight. -
How to Lock a Folder on Windows Picture 15
Type a lock password. Since Your-Password-Here is highlighted, it will disappear once you start typing your lock password. The password you type is the one you'll need to enter to access the folder. -
How to Lock a Folder on Windows Picture 16
Click the File menu. It's at the top of the window. -
How to Lock a Folder on Windows Picture 17
Click Save As…. -
How to Lock a Folder on Windows Picture 18
Select All Files from the 'Save As type' drop-down menu. It's the first drop-down menu at the bottom of the window. -
How to Lock a Folder on Windows Picture 19
Change the file name to FolderLocker.bat. To do this, erase what's already in the 'File name' field and type FolderLocker.bat. -
How to Lock a Folder on Windows Picture 20
Click Save. Now you're ready to password-protect your files.
Part 3 of 4:
Locking the Folder
-
How to Lock a Folder on Windows Picture 21
Double-click FolderLocker in the File Explorer window. This creates a new folder called Locker in the current folder.[2] -
How to Lock a Folder on Windows Picture 22
Drag the files you want to lock to the Locker folder. Dragging files to this locker will also remove them from their current folder. -
How to Lock a Folder on Windows Picture 23
Double-click FolderLocker. This opens a black window that asks, 'Are you sure u want to lock the folder (Y/N).' -
How to Lock a Folder on Windows Picture 24
Press Y. -
How to Lock a Folder on Windows Picture 25
Press ↵ Enter. The window will disappear, as will the folder called Locker. Don't worry, it's still there—you'll just have to run the FolderLocker script to make it visible.
Part 4 of 4:
Accessing Files in the Locked Folder
-
How to Lock a Folder on Windows Picture 26
Double-click the folder where you created the Locker. You can do this from the File Explorer at any time.- This is the folder that contains the file called FolderLocker.
-
How to Lock a Folder on Windows Picture 27
Double-click FolderLocker. A black window will appear, asking you to enter the password. -
How to Lock a Folder on Windows Picture 28
Type the Locker password and press ↵ Enter. This brings back the Locker folder, which is now accessible.
5 ★ | 1 Vote
You should read it
- How to Hide a File or Folder from Search Results in Microsoft Windows
- How to Zip Folder on Windows
- What is a folder The concept of a file (File) and a folder (Folder) in a computer
- How to use PDF Page Lock to lock PDF files
- Top 5 Folder software, extremely secure folder lock
- How to Zip a File in Windows
- Create passwords for File and Folder protection on Android
- How to Set Password for Folder and File in Windows
- Remove the folder's Lock icon in Windows 7
- How to save files to multiple folders on the web browser
- How to Change File Permissions on Windows 7
- How to Extract a Gz File