|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『楼 主』:
[已结]有没有删除U盘的批处理
使用 LLM 解释/回答一下
起到弹出图中窗口作用
Last edited by HAT on 2008-10-22 at 11:44 ]
Plays the role of popping up the window in the picture
Last edited by HAT on 2008-10-22 at 11:44 ]
|
|
2006-12-14 08:52 |
|
|
0401
中级用户
   带走
积分 435
发帖 88
注册 2005-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
我发个附件你自己研究研究吧。
I'll send you an attachment for you to study by yourself.
附件
1: ReScanUsb.rar (2006-12-14 10:45, 14.85 KiB, 下载附件所需积分 1 点
,下载次数: 738)
|
|
2006-12-14 10:45 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
正在研究就给你找出来了^_^
Just found it while researching ^_^
|
|
2006-12-14 13:16 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by lxmxn at 2006-12-14 00:30:
试了一下,好象只能分隔文本文件,分割其它的文件,可能就损坏了文件的结构,导致文件无法使用。
楼上的回错贴了吧?!^_^
Originally posted by lxmxn at 2006-12-14 00:30:
Tried it, it seems that it can only split text files. Splitting other files may damage the file structure, making the file unusable.
You replied to the wrong post upstairs? Hehe^_^
|
|
2006-12-14 13:32 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
恩。回错了。马上删除。
Hmm. I replied to the wrong one. I'll delete it immediately.
|
|
2006-12-14 13:42 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
似乎立即又被系统识别了^_^
It seems to be immediately recognized by the system again ^_^
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-12-14 20:59 |
|
|
dbc6013
初级用户
 
积分 55
发帖 16
注册 2006-10-27
状态 离线
|
|
2006-12-14 21:08 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
正确用法:
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"
删除U盘后拔下U盘,再执行 devcon rescan
或者不用执行 devcon rescan,下次插入后重新自动扫描U盘
Correct usage:
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"
After removing the USB flash drive, unplug it, then execute devcon rescan
Or you don't need to execute devcon rescan, the next time you insert it, it will automatically rescan the USB flash drive
|
|
2006-12-14 21:29 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
是立即识别!!!
It's immediate recognition!
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-12-14 21:36 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by ccwan at 2006-12-14 08:36:
是立即识别!!!
昨晚我试了好几次,正确方法:
执行“for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"”删除U盘后拔下U盘,再执行“devcon rescan”扫描新硬件,如果一起执行,U盘根本来不及拔下就扫描出来了;当然也可以不用执行“devcon rescan”
Originally posted by ccwan at 2006-12-14 08:36:
It's immediate recognition!!!
I tried several times last night. The correct method:
Execute "for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i" to remove the USB flash drive, then unplug the USB flash drive, and then execute "devcon rescan" to scan new hardware. If executed together, the USB flash drive is not unplugged in time and is scanned out; of course, you can also not execute "devcon rescan"
|
|
2006-12-14 22:38 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
|
2006-12-15 07:13 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
在命令行中执行for语句,%%i要改成%i,这与批处理脚本的%%i不同。
In the command line, when executing the for statement, %%i should be changed to %i, which is different from %%i in batch scripts.
|
|
2006-12-15 07:24 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
哪位老大.直接写个命令给我.我改这个.去掉哪个.就是不行啊
Which senior can just write a command for me. I'll modify this. Can't remove that. Just can't.
|
|
2006-12-15 10:10 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
ZH159大虾
"我那个bat加入了 devcon rescan 你去掉那一行就行了。
因为这个是用来重新扫描的嘛,ReScanUsb~ 你只要删就没必要rescan了。还有你直接回贴就行了不用给我传消息的。"
是去掉devcon rescan这几个字母吗?其他的不动.我试了,可还是不行.是不是有什么空格不对.可以再发一次吗?求好心人帮我
ZH159 big shot
"You just need to remove that line where devcon rescan is added in your bat. Because this is for rescanning. ReScanUsb~ You just need to delete that line and there's no need for rescan. Also, you can just reply directly instead of sending me a private message."
Do you mean to remove the letters devcon rescan? Keep the rest unchanged. I tried but it still doesn't work. Is there any problem with spaces? Can you send it again? Please help, kind person
|
|
2006-12-15 10:17 |
|
|
0401
中级用户
   带走
积分 435
发帖 88
注册 2005-9-24
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
......
应该没问题才对,你只是想要删除设备那么在那个P处理文件里只要有这行就行了
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"
devcon rescan 是重新扫描设备 你就没必要加上去了.
我觉得我说得很详细了~~
......
It should be no problem. You just want to delete the device, so in that P processing file, as long as there is this line:
for /f %%i in ('devcon findall usb* ^|find /i "usb mass storage"') do devcon remove "@%%i"
devcon rescan is to rescan the device, so you don't need to add it.
I think I explained it very detailedly~
|
|
2006-12-15 10:37 |
|