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-08-12 08:03
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help]Can batch processing realize automatically popping up the removable disk? View 1,508 Replies 9
Original Poster Posted 2009-08-19 11:49 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
[Help] Can batch processing achieve automatically popping up a removable disk? What command is appropriate?
Floor 2 Posted 2009-08-20 01:25 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
Depressed, is there no one who can tell me? The website I accidentally found in the company can't save me either!
Floor 3 Posted 2009-08-20 05:35 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 4 Posted 2009-08-20 11:16 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
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?
Floor 5 Posted 2009-08-20 12:59 ·  中国 北京 朝阳区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Automatic pop-up is the system setting. Baidu CD auto-run.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2009-08-20 13:32 ·  中国 广东 广州 电信
初级用户
★★
l i u s s
Credits 73
Posts 101
Joined 2008-09-17 00:21
17-year member
UID 125825
Gender Male
From GZ
Status Offline
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 ]
Floor 7 Posted 2009-08-20 23:49 ·  中国 广西 南宁 电信
初级用户
Credits 20
Posts 17
Joined 2008-09-07 13:21
17-year member
UID 125036
Gender Male
Status Offline
Just use Vichy U Bao, right-click it.
处于,并长期处于潜水状态
Floor 8 Posted 2009-08-21 01:39 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
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!
Floor 9 Posted 2009-08-21 01:41 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
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!
Floor 10 Posted 2009-08-21 01:43 ·  中国 广东 深圳 电信
新手上路
Credits 6
Posts 6
Joined 2009-08-18 11:43
16-year member
UID 150581
Gender Male
From 河南
Status Offline
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!
Forum Jump: