How to Create a hidden folder with a password and a Win7 folder in win7

Source: Internet
Author: User

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:

  1. Cls
  2. @ ECHO OFF
  3. Title Folder Private
  4. If EXIST "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  5. If not exist Private goto MDLOCKER
  6. : CONFIRM
  7. Echo Are you sure you want to lock the folder (Y/N)
  8. Set/p "cho =>"
  9. If % cho % = Y goto LOCK
  10. If % cho % = y goto LOCK
  11. If % cho % = n goto END
  12. If % cho % = N goto END
  13. Echo Invalid choice.
  14. Goto CONFIRM
  15. : LOCK
  16. Ren Private "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D }"
  17. Attrib + h + s "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D }"
  18. Echo Folder locked
  19. Goto End
  20. : UNLOCK
  21. Echo Enter password to unlock folder
  22. Set/p "pass =>"
  23. If NOT % pass % = PASSWORD_GOES_HERE goto FAIL
  24. Attrib-h-s "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D }"
  25. Ren "Control Panel. {21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
  26. Echo Folder Unlocked successfully
  27. Goto End
  28. : FAIL
  29. Echo Invalid password
  30. Goto end
  31. : MDLOCKER
  32. Md Private
  33. Echo Private created successfully
  34. Goto End
  35. : 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.