中国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-09-26 04:11
47,813 topics / 349,918 posts / today 0 new / 48,275 members
DOS批处理 & 脚本技术(批处理室) » [Closed]Is there a batch script to delete a USB drive
Printable Version  15,038 / 66
Floor61 y6y8 Posted 2008-10-22 11:42
新手上路 Posts 2 Credits 2
Just what I need! Give it a thumbs up
Floor62 feijia2008 Posted 2008-10-30 11:41
新手上路 Posts 1 Credits 1
Okay~
Learn something!
Floor63 mrweek Posted 2009-06-18 00:15
新手上路 Posts 2 Credits 2
There is a problem~ I have many devices, how to find the specified device example number?

And if you uninstall, they are all gone. Usually, I just need to uninstall one.

How to solve this~ I'm also researching~ Is the ID of each device different??

Even if it's the same model from the same manufacturer.
Floor64 guo882633 Posted 2009-07-07 03:19
初级用户 Posts 53 Credits 126 From -
@echo off
start mode con cols=1 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof

:min
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"
exit
Floor65 hhybhf Posted 2009-08-06 09:51
新手上路 Posts 2 Credits 3
Why are some variables I don't understand. Oh, I'm confused.
Floor66 zhendong Posted 2009-11-09 11:01
新手上路 Posts 2 Credits 2
Floor67 Aiyaya Posted 2010-07-27 23:47
新手上路 Posts 1 Credits 1
Prev  1 … 2 3 4 5
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023