Win7/win8.1/win10 system folders how to encrypt hidden

Source: Internet
Author: User
Tags goto

  In Win7 and above systems, folders can be encrypted and hidden, in the following steps:

  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.

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.