Computer shutdown how to tip not pull u disk?

Source: Internet
Author: User

First step,

We are in the desktop space, right click on "new" text document, and then enter the following content:

On Error Resume Next

Dim FSO, D,dc,f

Set fos = CreateObject ("Scripting.FileSystemObject")

Set DC = fso,drives

For each D in DC

Set f = fso. GetFile (D & "Please take me home. txt")

If Left (f,2) =d Then MsgBox "Remind you:" &d& "plate, please take home!", vbcritical, "Hello!"

Next

After pasting, we save Notepad in the root of C disk and rename it to "Usb.vbs".

Second step, press the shortcut key combination "win (window) +r", Bring Up the "Run" dialog box, enter Gpedit.msc, and press Enter or click "OK".

In the third step, in the Group Policy Editor, we expand Computer Configuration-windows Settings-script (boot/shutdown) in turn, and in the right window, double-click shutdown.

The fourth step, in the "Shutdown" dialog box, click the "Add" button, and then "Browse" select the saved before the "Usb.vbs" file, and finally click the "OK" button.

The fifth step, worth noting, in the future on your U disk or mobile hard disk directory, to create a file named "Please take Me home. txt" text file. Later, if you shut down without pulling out a U disk or moving the hard drive, the system will pop-up warning box prompts you, so much safer.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you 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.