Tutorial: Encrypting Win7/Win8.1/Win10 Folders

  
        IT Home News Computer file privacy issues have always been the focus of many users, especially those whose computers are often used by others. It may be convenient to use a third-party software to encrypt the folder, but it is even better if you can accomplish this task without the help of “external force”.

This article is about a method, this method is applicable to Win7/Win8.1/Win10 system.
The specific steps are as follows:
1. Create a new text file with random location. 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 Enter a password to unlock the folder
set/p "pass=>"
if NOT %pass%= = Set the password here 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, replace "set password here" with the one you want to set The password (note the space before and after the removal)
3, save the file as Locker.bat
4, copy the file to the location where you want to hide the file (clip), and then double-click to run
5, you will find that the file automatically creates a folder called "Private", then move the file you want to encrypt and hide (Pinch) to Private.

6, run Locker.bat again, enter Y on your behalf to confirm the encryption to hide the Private folder, enter N to abandon the operation
7, if you enter Y, the Private folder will be hidden

8. At this time, if you want to view the contents of the Private folder, run Locker.bat again, enter the password you set and press Enter. Note that the Private folder will not be displayed because the system is set to "Show hidden files". ", folder and drive" loses the hidden effect, and only "appears" when uncheck "Hide Protected System Files".

Copyright © Windows knowledge All Rights Reserved