中国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 20:13
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Help, experts: why won't this Autoexec run?
Printable Version  638 / 3
Floor1 xiaojun Posted 2003-07-12 00:00
银牌会员 Posts 499 Credits 2,202
I forgot to write the subject. Let's do it again:
I put the shutdown command into Autoexec, X:\shutdown -r and put it on the desktop. Why does it just flash once and disappear when I run it? What is the correct way to write it so it can log off and restart?
Floor2 hunome Posted 2003-07-12 00:00
银牌会员 Posts 721 Credits 2,265
You should edit the original post, this counts as a duplicate post!

What system are you using? What are you putting autoextc.bat on the desktop for?
Floor3 dv人 Posted 2003-07-13 00:00
初级用户 Posts 35 Credits 281
rundll.exe user.exe ,exitwindows-----------------------------------shut down
rundll.exe user.exe ,exitwindowsexec------------------------------restart

Don't forget to enter the path,,,,,, also, 2000 and XP no longer support DOS, and when a batch file finishes running it will disappear automatically
Floor4 xiaojun Posted 2003-07-13 00:00
银牌会员 Posts 499 Credits 2,202
Oh, I just wanted to avoid having to type shutdown and the command in cmd under XP, it's too troublesome. Thank you.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023