How does the computer create the password folder

Source: Internet
Author: User
Tags goto password protection

Protect the computer file security is a topic of concern, we do not want others to view personal privacy files, file encryption methods are many kinds, but the operation is very troublesome. In fact, we can use the basic batch code to create a password-protected folder, batch file is not a TrueCrypt volume or other patterns of double encryption, it simply creates a basic password protection with a shortcut, the folder is set as hidden files, not easy to be found, Take a look at the specific procedure.

1. Create a folder and name it "hidden file";

2. Open the folder and right-click the blank space in the window to select "New → text document" command to create a text file;

3. Copy the following code into the text file just now;

Cls

@ECHO OFF

Title Folder Private

If EXIST "Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "goto UNLOCK

If not EXIST Private goto Mdlocker

: CONFIRM

Echo is you sure-want to lock the 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 "Control panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "

attrib +h +s "Control panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "

Echo Folder Locked

Goto END

: UNLOCK

echo Enter password to unlock folder

set/p "Pass=>"

If not%pass%== password_goes_here goto FAIL

Attrib-h-S "Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "

ren "Control Panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "Private

Echo Folder Unlocked successfully

Goto END

: FAIL

echo Invalid Password

Goto END

: Mdlocker

MD Private

Echo Private created successfully

Goto END

: End

4, in the above code, with the password you want to replace the "Password_goes_here";

5. Save text file as. bat format, file name can be "Locker.bat", note: Save type is set to "All Files" to save successfully;

6. I double-click the "Locker.bat" file to create a folder named "Private" in the "Hidden Files" folder;

7. We double-click the "Locker.bat" file again to make the contents of the "Private" folder disappear. In the command prompt window that appears, enter "Y" and return.

8. Click "View" for Folder Options.

9. The folder becomes the Control panel. {21ec2020-3aea-1069-a2dd-08002b30309d} "folder;

This method to protect the privacy folder is still good, simple and fast security, security level is relatively high, interested users hands-on Operation Bar.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 Welcome to join

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.