1, first create a folder, and named "Hidden file";
2, then open the folder, and then right-click the window to select the "new → text document" command to create a text file;
3, copy the following code into the newly created 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 your 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, with the password you want to replace the "Password_goes_here", such as: With 12345, the final effect is: if not%pass%== 12345 goto FAIL;
5, and then save the text file as a. bat format, the filename can be set to "Locker.bat", reminder, save type set to "All Files" to save success;
6, and then double-click the "Locker.bat" file, in the "Hidden files" folder to create a folder named "Private", you can put any need to hide files to the folder;
7, double-click the "locker.bat" file can let the "Private" folder contents disappear, in the Command Prompt window to enter "Y", then, we found that the folder stealth;
8, but we can click the organize → files and search Options command in the Explorer to open the Folder Options window. Switch to the "View" tab, remove the "Hide protected operating system files" option, select "Show hidden files, folders, and drives", and make sure to leave "Private" Folders appear, the Private folder becomes the Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} folder, which is obviously a folder for system-hidden properties.
9, if you need to unlock the folder, just double-click the "Locker.bat" file. Enter the password at the command prompt that pops up.
about how to create a folder with a password hidden under the Win7 system to protect personal privacy files to share with you here, this method to protect personal privacy documents is very good, interested friends can try it on their own.