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!
Credits 61 Posts 33 Joined 2007-01-13 03:02 19-year member UID 76342 Gender Male
Status Offline
Originally posted by lac312 at 2008-3-29 11:47 PM:
@echo off
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"' do devcon remove "@%%i"
ping 127.1 -n 20 >nul
devcon rescan
pause
echo 呵呵测试成功 ...
It is recommended to use sleep.exe to control the delay, which can be precise to milliseconds. It is said that it was compiled by a German. Click to download: Usage: sleep 3000 ms, where ms is for annotation and can be omitted.
Credits 2 Posts 1 Joined 2008-04-28 08:43 18-year member UID 117146 Gender Male
Status Offline
Expert, the batch processing you made to delete the USB drive is very good, but I can't download it now. If it's convenient, please send a copy to my email greation2009@163.com
Thank you in advance, expert!