How does Win system use its own function to encrypt and hide folders

  
                                                                                                                                                                                         

In order to protect the security of files, people are used to encrypting or hiding folders. There are many ways to encrypt folders. Many users use third-party software for encryption, but it is more troublesome to operate. Today, Xiaobian will introduce you to the Win8.1 system to use the built-in function to encrypt and hide folders.

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< Br>

: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. Set the password here < Rdquo; Replace with the password you want to set (note that the space before and after do not remove);

3, save the file as Locker.bat;

4, copy the file to the one you want Hide the location of the file (clip), and then double-click to run it once;

5, found that the file automatically created a folder named "Private", at this time you want to encrypt the hidden file (clip Move to Private;

6. Run Locker.bat again, enter Y to confirm that the encryption hides the Private folder, and enter N to abort the operation;

7. If you enter Y The Private folder will be hidden;

8. If you want to view the contents of the Private folder, run Locker.bat again, enter the password you set and press Enter.

The above is the way to use the Win8.1 system's own function to encrypt and hide the folder. It is easy to operate, and it is so easy to encrypt and hide the folder. Come and try it!



Copyright © Windows knowledge All Rights Reserved