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-27 21:35
中国DOS联盟论坛 » 其它操作系统综合讨论区 » How to make a DOS script run before shutting down or logging off? View 1,715 Replies 2
Original Poster Posted 2008-07-29 12:01 ·  美国
初级用户
Credits 21
Posts 6
Joined 2008-07-04 11:50
17-year member
UID 121084
Gender Male
Status Offline
May I ask: I wrote a small script in DOS. The purpose is to pop up a dialog box to remind if the USB flash drive is plugged into the computer when shutting down. I used the shutdown script, but the dialog box (MSG) can't pop up. I see that the main reason is that it logs off before shutting down. Please help the expert come up with a solution.
Floor 2 Posted 2008-07-31 14:56 ·  中国 北京 联通(数字北京大厦IDC机房)
初级用户
Credits 21
Posts 6
Joined 2008-07-04 11:50
17-year member
UID 121084
Gender Male
Status Offline
怎么没人解答?有知道的高手帮帮忙,谢谢!
Translation: Why is there no one to answer? If there are any knowledgeable experts, please help, thank you!
Floor 3 Posted 2010-07-22 20:23 ·  中国 四川 成都 电信
新手上路
Credits 3
Posts 3
Joined 2010-07-19 00:06
15-year member
UID 170728
Gender Male
Status Offline
It can be solved by using the strategy editor. Both power - on and power - off are okay.
Forum Jump: