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 21:18
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Help, experts: why won't this Autoexec run? View 639 Replies 3
Original Poster Posted 2003-07-12 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
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?
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 2 Posted 2003-07-12 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
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?
Floor 3 Posted 2003-07-13 00:00 ·  中国 天津 联通
初级用户
你说呢
Credits 281
Posts 35
Joined 2003-06-23 00:00
23-year member
UID 5734
Gender Male
Status Offline
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
dv人-----------------------------呀
Floor 4 Posted 2003-07-13 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
Oh, I just wanted to avoid having to type shutdown and the command in cmd under XP, it's too troublesome. Thank you.
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Forum Jump: