中国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-12 06:27
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help]Can batch processing realize automatically popping up the removable disk?
Printable Version  1,505 / 9
Floor1 smuawskddd Posted 2009-08-19 11:49
新手上路 Posts 6 Credits 6 From 河南
[Help] Can batch processing achieve automatically popping up a removable disk? What command is appropriate?
Floor2 smuawskddd Posted 2009-08-20 01:25
新手上路 Posts 6 Credits 6 From 河南
Depressed, is there no one who can tell me? The website I accidentally found in the company can't save me either!
Floor3 HAT Posted 2009-08-20 05:35
版主 Posts 5,017 Credits 9,023
Floor4 smuawskddd Posted 2009-08-20 11:16
新手上路 Posts 6 Credits 6 From 河南
I'm sorry, moderator. I'm a computer novice and not familiar with these commands! But my original intention was just to pop up this removable disk. However, when I searched online, it seems that the devcon command is mostly for disabling. If that's the case, will the new removable disk not prompt me when I insert it?
Floor5 yishanju Posted 2009-08-20 12:59
银牌会员 Posts 1,357 Credits 1,488
Automatic pop-up is the system setting. Baidu CD auto-run.
Floor6 newxso Posted 2009-08-20 13:32
初级用户 Posts 101 Credits 73 From GZ
Want to automatically and quickly safely remove a USB flash drive, use the third-party tool USB_Disk_Eject (attachment). It supports completing the safe removal of a USB flash drive from the command line (as follows, assuming the USB flash drive drive letter is I):

USB_Disk_Eject.exe /REMOVELETTER I

Automatically remove all USB flash drives:
@echo off
for /f "skip=1 tokens=1" %%a in ('wmic logicaldisk where^(drivetype^=2^) get caption^,description') do USB_Disk_Eject.exe /REMOVELETTER %%a



Attachment (USB_Disk_Eject)

[ Last edited by newxso on 2009-8-20 at 13:38 ]
Floor7 luxipeng Posted 2009-08-20 23:49
初级用户 Posts 17 Credits 20
Just use Vichy U Bao, right-click it.
Floor8 smuawskddd Posted 2009-08-21 01:39
新手上路 Posts 6 Credits 6 From 河南
I searched on Baidu as you said, but most are about how to make something run automatically. My goal is to make a batch program that can automatically pop out the card in the card reader without affecting the work of the removable disk! Actually, it's just to shorten the time for writing the CF card, for being lazy! So I urgently need a batch command to realize the automatic pop-up of the removable disk and shorten the 2 seconds of clicking the mouse!
Floor9 smuawskddd Posted 2009-08-21 01:41
新手上路 Posts 6 Credits 6 From 河南
I made a batch script according to your command, but it didn't realize the automatic ejection of the removable disk after running! I'm sorry to trouble you! Is there a better method? Please give me some advice. Besides, I'm using the XP system! Thanks!
Floor10 smuawskddd Posted 2009-08-21 01:43
新手上路 Posts 6 Credits 6 From 河南
I used this software, it seems to be forced to pop up, and cannot shorten the pop-up time! My purpose is on the 8th floor. If there is a feasible way, please give me some advice! I am using the XP system, and I am also a computer idiot! Thank you very much for your help, please!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023