How to create a folder with password hiding under Win7 system to protect personal privacy files

  

1. First create a folder and name it "Hidden files";

2, then open the folder Then, right-click in the blank space of the window and 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 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 Priv Ate "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< Br>

echo Invalid password

goto end

:MDLOCKER

md Private

echo Private created successfully

goto End

:End

4, in the above code, replace the "PASSWORD_GOES_HERE" with the password you want, for example: with 12345, the final effect is: if NOT %pass%= = 12345 goto F AIL;

5, then save the text file as .bat format, the file name can be set to “locker.bat”, reminder, save type is set to “ all files & rdquo; can be saved successfully; >

6. Then double-click the “locker.bat” file to create a folder named “Private” in the “Hidden Files” folder. You can place any files you need to hide into the file. Clip;

7. Double-click the “Locker.bat” file again to make the contents of the “Private” folder disappear. Enter “"Y" in the command prompt window that appears, press Enter; At this time, we found that the folder is invisible;

8, but we can click on the "Organize → File 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>, make sure to leave “Private&rdquo The folder appears, at this time, the "Private" folder becomes the "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” folder, which is obviously a hidden folder of the system. .

9. If you need to unlock this folder, just double click on the “locker.bat” file. Enter the password at the command prompt that pops up.

About how to create a folder with password hiding under Win7 system to protect personal privacy files to share with you here, this method to protect personal privacy files is still very good, interested friends can try it for themselves Let's go.

Copyright © Windows knowledge All Rights Reserved