In Win7 and above systems, folders can be encrypted and hidden, in the following steps:
1, create a new text file, the location at random, enter the following content:
Cls
@ECHO off
Title Folder Private
If EXIST "HTG Locker" goto UNLOCK
If not EXIST Private goto Mdlocker
: CONFIRM
Echo, are you sure you want to encrypt the hidden private 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 "HTG Locker"
attrib +h +s "HTG Locker"
Echo Folder Locked
Goto END
: UNLOCK
Echo enters a password to unlock the folder
set/p "Pass=>"
If not%pass%== this setting password goto FAIL
Attrib-h-S "HTG Locker"
ren "HTG Locker" Private
Echo Folder Unlocked successfully
Goto END
: FAIL
echo Invalid Password
Goto END
: Mdlocker
MD Private
Echo Private created successfully
Goto END
: End
2, "Set password here" to replace the password you want to set (note before and after the space do not remove)
3. Save the file as Locker.bat
4, copy the file to the location where you want to hide the file (folder), and then double-click to run once
5, you will find that the file automatically created a folder called "Private", at this time you want to encrypt the hidden file (folder) moved to Private
6, run Locker.bat again, input y on behalf of you confirm encryption hidden private folder, input n abort operation
7, if the input Y,private folder will be hidden
8, at this point if you want to view the contents of private folders, run Locker.bat again, enter your password set after the return
Note that private folders do not lose their hidden effects when they are hidden, but will not appear until you uncheck "Hide protected system files" when they are not set up to display hidden files, folders, and drives.