With DevCon combined with batch processing, you can achieve the above complex operations with a single click. About DevCon, Microsoft says this:
The DevCon utility is a command-line utility that can replace the device manager. With DevCon, you can enable, disable, restart, update, delete, and query individual devices or a group of devices. DevCon also provides information that is relevant to the driver developer but not visible in Device Manager. You can use DevCon with Microsoft Windows 2000, Windows XP, and Windows Server 2003.
Note: The devcon.exe that comes back is a zip archive that must be unpacked (WinRAR available). After decompression, there are two folders. The devcon.exe in I386 is used by 32-bit machines, while the Ia64 is used by 64-bit machines.
Create a new text file, enter the following code, save the extension to bat, and put 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 to disable the USB device and then enable it. The long list of things you need to modify yourself is to right-click on the "USB Root Hub" and select "Attributes", then select "Details" and replace the above code with "Device Sample ID". In the middle. The last thing to note is that “@” and double quotes, this is the key to success!
Another: <;Device Sample ID" You can use the wildcard “*”, which stands for any character. For example, if you write a devcon disable @“USB*”, all USB devices (such as USB keyboard, mouse, etc.) will be disabled.
Don't look at the above content seems to be very complicated, in fact, it is a step of the matter, just click on the batch to restart the U disk, you can directly unplug the U disk. If you want to operate the USB flash drive conveniently in the future, try the above steps!
1, the most commonly used Ali Wangwang as an example, the direct opening will appear Exception code
1). Use the Win+R combination shortcut to open the Run dialog box, then type the registry command re
Security mode is a special mode in the Windows operating system, friends who often use the computer
IE10/IE11 cant display Flash is a lot of faults that win8/win8.1 users often encoun
Win8 feel the first day of Metro style
Win8 system's own new quick launch bar method
Win8 quick link menu efficient system setting
Where is the storage path of the Win8 system taskbar icon?
How to automatically close the Win8 computer display
How to retrieve the win8/win8.1 webpage password
Detailed introduction of the TrustedInstaller.exe process under win8 system
Win8 system lets you turn off hibernation
Win8 "Start Screen" PK "Start Menu"
Win8 username Microsoft ID and administrator account details
How to use Win+R command to enter Win10 security mode
Enhancements to Windows 2000 Browser Features
Windows 8 cardless minesweeping game how to solve
How to enlarge the application window to full screen
How to solve the problem of hard disk flashing in Windows 7
How to do win8 system card taskbar? Win8 system card taskbar solution
Use Disklogon to teach you to use a USB drive to enter a Windows system with a password
How to do Win10 flight mode can not be closed Win10 flight mode can not close the solution
Win10 software can not open how to do win10 solution
Win10 Preview 10565 released two update patches including IE Flash Player Security Patch