How to Create a hidden folder with a password and a Win7 folder in win7
This article describes how to create folders with hidden passwords to protect private files. For more information, see
Follow these steps to create a folder with a password hidden in Win7 to protect your privacy:
1. Create a folder and name it "hidden file ";
2. Open the folder and right-click the blank window and choose "New> Text Document" to create a text file;
3. Copy the following code to the new text file:
- Cls
- @ ECHO OFF
- Title Folder Private
- If EXIST "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
- If not exist Private goto MDLOCKER
- : CONFIRM
- Echo Are you sure you 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 Private "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 % = PASSWORD_GOES_HERE goto FAIL
- Attrib-h-s "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D }"
- Ren "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
- Echo Folder Unlocked successfully
- Goto End
- : FAIL
- Echo Invalid password
- Goto end
- : MDLOCKER
- Md Private
- Echo Private created successfully
- Goto End
- : End
4. In the above Code, replace "PASSWORD_GOES_HERE" with the desired password. For example, use 12345. The final effect is: if NOT % pass % = 12345 goto FAIL;
5. Save the text file as. bat. The file name can be set to "locker. bat". A reminder is that the file can be saved successfully only when the storage type is set to "all files;
6. Double-click the "locker. bat" file and create a folder named "Private" in the "Hidden Files" folder. You can place any files to this folder;
7. Double-click "Locker. the bat file can disappear the content in the "Private" folder. Enter "Y" in the Command Prompt window that appears and press Enter. Then, we will find that the folder is invisible;
8. However, you can click "organization> files and search options" in the resource manager to open the "Folder Options" window and switch to the "View" tab, remove the "Hide protected operating system files" option, select "show hidden files, folders, and drives", and confirm that the "Private" folder appears after exiting, the "Private" folder is changed to "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D} "folder is obviously a folder with hidden properties of the system.
9. To unlock the folder, double-click the "locker. bat" file. Enter the password at the pop-up command prompt.
I will share with you how to create a folder with a password hidden in Windows 7 7 to protect my privacy files. This method is a good way to protect my privacy files, if you are interested, try it on your own.