You can continue to use the USB drive without pulling the plug

Source: Internet
Author: User

We are using the U disk before pulling out are to "safely Remove hardware equipment", if clicked after this suddenly and also want to use U disk, but "My Computer" has no U disk in the letter, how to do? You're going to say, "It's definitely a U-pull." However, now teach you a more convenient way, do not need to plug the U disk can also continue to use:

Using the DevCon tool to add a batch file, click on it.

The DevCon utility is a command-line utility that can override Device Manager. With DevCon, you can enable, disable, restart, update, delete, and query individual devices or a set of devices. DevCon also provides information that is relevant to driver developers but cannot be seen in Device Manager. DevCon can be used in Windows XP and Windows Server 2003.

Download the Devon tool first. Note: The Devcon.exe coming down is a zip compression package that must be decompressed (available winrar). After decompression, there are two folders, the Devcon.exe in the I386 is used by 32-bit machines, and the Ia64 in the 64-bit machine.

Create a new text file, enter the following code, change the extension to bat at save time, and place it in the same directory as Devcon.exe

@echo off

devcon disable @ "usbroot_hub204&1a2797b1&2"

DevCon enable @ "Usbroot_hub204&1a2797b1&2"

Note: The above code is the first to implement the disable USB device and then enable. The long list of things you need to modify, by right-clicking on the "USB Root Hub" and selecting "Properties", then "details" and substituting "device instance ID" to replace the one in the above code. The final note is, "@" and double quotes, this is the key to success or failure!

Another: "Device instance ID" can use the wildcard "*", which represents any character. For example, you write a devcon disable @ "usb*", all USB devices (such as USB keyboard, mouse, etc.) will be disabled.

OK, in the future when this situation, just click on batch processing can restart U disk.

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.