The privacy of computer files has always been the focus of many users, especially their computers are often used by others friends. It may be convenient to use Third-party software for folder encryption, but it is even more perfect if you can accomplish this task without the help of "external forces".
This article is to introduce this method, this method is suitable for win7/win8.1/win10 system.
The specific steps are as follows:
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.
It home computer file privacy issues have been a lot of users focus, especially their own computers are often used by others friends. It may be convenient to use Third-party software for folder encryption, but it is even more perfect if you can accomplish this task without the help of "external forces". This article is to introduce this method, this method is suitable for win7/win8.1/win10 system. The specific steps are as follows: 1. Create a new text file, position at random, enter the following: CLS @ECHO off title Folder Private if EXIST "HTG Locker" goto UNLOCK if not EX IST 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 E Cho Invalid choice. Goto Confirm:lock ren Private "HTG Locker" attrib +h +s "HTG Locker" echo Folder locked goto end:unlock EC Ho Enter password to unlock folder set/p "pass=>" if not%pass%== here Set password goto FAIL attrib-h-S "HTG Locker" ren "HTG Locker" privat E echo Folder unlocked successfully goto end:fail echo Invalid password goto end:mdlocker MD Private Ech o Private created successfully goto End:end 2, replace "This set password" with 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 you want to hide The location of the file (folder), and then double-click Run Once 5, you will find that the file automatically created a named "PrivAte "folder, 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 to confirm the encryption hidden private folder, input n give up operation 7, if the input Y,private folder will be hidden 8, At this point if you want to see private folder content, run Locker.bat again, enter the password you set after the return note, private folder in hiding also will not because the system set "Show hidden files, folders and drives" and loss of hidden effects, only in the cancellation of the check " "Show up" when you hide protected system files.