How to protect the secrets of your USB flash drive

Source: Internet
Author: User
Tags mixed

Do not want to let others know the secret of their U disk, quickly to encrypt the U disk, do not need other software, follow the following to do it.

First step: Copy a small volume of JPG and WAV format Chinese Cabbage official website to the USB flash drive, then set the USB drive permission to allow only the current account (LCR) Full Control. Now, open Notepad to enter the following and save as Lock.bat batch, placed in the C: directory.

REM Note: To access the USB drive, run the desktop "open USB drive" and enter the correct password

@cacls J:/e/r LCR

@pause

Command explanation: Run the cacls command to modify the J: (USB drive) permission to deny LCR access.

Now, create a batch unlock.bat and send it to the desktop with the shortcut name "Open USB flash drive" with the following:

@echo off

@runas/USER:LCR "cacls J:/g Lcr:f"

Command explanation: Re-run the cacls command in LCR to give LCR Full control of the USB drive.

Step two: Run TweakUI, expand My Computer → AutoPlay, and under Type, tick activate AutoPlay for removable media. Click Create on the action item, and then follow the prompts for a new AutoPlay interface called "Access USB drive", click "Change Program", select "C:lock.bat", and tick "mixed content" in the "Supported Media" list. Because the system is based on the detected file type to pop up the playback window, so we put the image and music files in the USB flash drive, so that the system detects it as a mixed content, and automatically execute the Lock.bat file, to cancel the access rights of LCR.

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.