中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 07:44
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Experts, come in! How to use DOS commands in cmd to remove a USB flash drive (the Safely Remove Hardware icon)
Printable Version  3,273 / 7
Floor1 yzy8000 Posted 2008-05-29 22:40
新手上路 Posts 1 Credits 4
Normally when we disconnect a USB flash drive, we have to right-click the lower right corner of the taskbar and remove hardware. Is there a way to do it with DOS commands instead?
Floor2 lxmxn Posted 2008-05-29 22:46
版主 Posts 4,938 Credits 11,386
It should be possible, search for rundll32.
Floor3 slore Posted 2008-05-29 22:55
铂金会员 Posts 2,478 Credits 5,212
Left-clicking is already very convenient...
Floor4 HAT Posted 2008-05-29 22:56
版主 Posts 5,017 Credits 9,023
Floor5 WANKOILZ Posted 2008-05-29 23:01
初级用户 Posts 89 Credits 198 From 重庆
devcon ........ I looked it up online, seems like it has very powerful features.

[ Last edited by WANKOILZ on 2008-5-29 at 11:04 PM ]
Floor6 radem Posted 2008-05-29 23:13
高级用户 Posts 383 Credits 691


This deletes the installed USB drivers.
How can I make it only disable them?
Floor7 WANKOILZ Posted 2008-05-29 23:16
初级用户 Posts 89 Credits 198 From 重庆
Just try: devcon remove @usb\* . But first you need to download devcon.exe into system32
Floor8 everest79 Posted 2008-05-30 16:47
金牌会员 Posts 1,127 Credits 2,564
The partition command built into XP can unmount it.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023