Current location - Recipe Complete Network - Complete cookbook - The method of computer creating password folder to protect system files [text tutorial]
The method of computer creating password folder to protect system files [text tutorial]
Protecting the security of computer files is a topic that everyone cares about. We don't want others to look at personal privacy files. There are many ways to encrypt files, but all of them are troublesome to operate. In fact, we can create a password-protected folder through basic batch code. The batch file is not a Truecrypt volume or other fancy double encryption. It just creates a shortcut protected by a basic password and sets the folder as a hidden file, which is not easy to find. See for specific operation steps.

1. Create a folder named "Hidden Files";

2. Open the folder, right-click 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 text file just now;

cls

@ECHOOFF

Title folder is private

ifEXISTControlPanel。 { 2 1ec 2020-3 AEA- 1069-A2DD-08002 b 30309d } gotoUNLOCK

ifNOTEXISTPrivategotoMDLOCKER

: confirm

Echoareyousureuwanttockthefolder (Yes/No)

set/pcho=

if%cho%==YgotoLOCK

if%cho%==ygotoLOCK

if%cho%==ngotoEND

if%cho%==NgotoEND

echoInvalidchoice。

gotoCONFIRM

: lock

renPrivateControlPanel。 { 2 1ec 2020-3 AEA- 1069-A2DD-08002 b 30309d }

attrib+h+sControlPanel。 { 2 1ec 2020-3 AEA- 1069-A2DD-08002 b 30309d }

Echo folder lock

gotoEnd

: unlock

echoEnterpasswordtounlockfolder

set/ppass=

if not % pass % = = PASSWORD _ GOES _ HEREgotoFAIL

attrib-h-sControlPanel。 { 2 1ec 2020-3 AEA- 1069-A2DD-08002 b 30309d }

renControlPanel。 {21ec2020-3aea-1069-a2dd-08002b30309d} private.

Echofolderlocked success

gotoEnd

: failure

echoInvalidpassword

gotoend

:MDLOCKER

mdPrivate

Echoprivate was successfully created.

gotoEnd

: end

4. In the above code, replace "password _ goes _ here" with your own password;

5. Save the text file as. Bat format, the file name can be "locker.bat". Note: Only when the save type is set to "All Files" can files be saved successfully;

6. I double-click the "locker.bat" file and create a folder named "Private" in the "hidden files" folder;

7. We can double-click the "Locker.bat" file again to make the contents in the "Private" folder disappear. Enter y in the command prompt window that appears, and then press Enter.

8. Click View to view the folder options;

9. The folder becomes a "control panel". { 2 1ec 2020-3 AEA- 1069-A2DD-08002 b 30309d } ";

This method of protecting private folders is good, simple, fast, safe and has a high level of security. Interested users can do it themselves.