How to continue using U disk after you stop using U disk

Source: Internet
Author: User

The process of using U disk, if you "safely remove the hardware" after not the U disk pull down, suddenly remembered to continue to use the U disk, what will you do? Generally, it is unplugged. Is there a simpler way?

Using DevCon combined with batch processing, the above complex operation can be achieved by a click. As for DevCon, Microsoft says:

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. You can use DevCon for Microsoft Windows 2000, Windows XP, and Windows Server 2003.

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.

Well, later encountered in the first paragraph of the situation, just click on batch processing will be able to restart the U disk, you can directly unplug the 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.