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.