China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 07:06
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Closed]Is there a batch script to delete a USB drive View 13,421 Replies 66
Floor 61 Posted 2008-10-22 11:42 ·  中国 河南 平顶山 联通
新手上路
Credits 2
Posts 2
Joined 2008-10-22 10:43
17-year member
UID 129028
Gender Male
Status Offline
Just what I need! Give it a thumbs up
Floor 62 Posted 2008-10-30 11:41 ·  中国 广西 南宁 联通
新手上路
Credits 1
Posts 1
Joined 2008-10-30 11:19
17-year member
UID 129530
Gender Male
Status Offline
Okay~
Learn something!
Floor 63 Posted 2009-06-18 00:15 ·  中国 辽宁 联通
新手上路
Credits 2
Posts 2
Joined 2009-02-26 15:01
17-year member
UID 140033
Gender Male
Status Offline
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.
Floor 64 Posted 2009-07-07 03:19 ·  中国 广东 惠州 电信
初级用户
★★
Credits 126
Posts 53
Joined 2007-02-04 19:21
19-year member
UID 78631
Gender Male
From -
Status Offline
@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
Floor 65 Posted 2009-08-06 09:51 ·  中国 江西 南昌 电信
新手上路
Credits 3
Posts 2
Joined 2009-08-05 13:29
16-year member
UID 149885
Gender Male
Status Offline
Why are some variables I don't understand. Oh, I'm confused.
Floor 66 Posted 2009-11-09 11:01 ·  中国 湖南 衡阳 电信
新手上路
Credits 2
Posts 2
Joined 2009-08-01 13:08
16-year member
UID 149719
Gender Male
Status Offline
Floor 67 Posted 2010-07-27 23:47 ·  中国 台湾 和信超媒体宽带网
新手上路
Credits 1
Posts 1
Joined 2010-07-26 01:11
15-year member
UID 171204
Gender Male
Status Offline
‹ Prev 1 3 4 5
Forum Jump: