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-25 20:08
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] Looking for a DOS command-line program to shut down the system under Win9x View 1,597 Replies 11
Original Poster Posted 2003-04-16 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I've been looking for this program for a long time. In pure DOS there's atxoff.exe, and under 2k/xp there's shutdown.exe. But I just can't find a command line that can directly shut down the system under win9x. By "shut down the system" here, I mean shutting it down the same way win9x does through Start -> Shut Down, not directly cutting the computer's power and then causing win9x to scan the disk on the next startup.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 2 Posted 2003-04-16 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It's also very simple to keep Win9x from scanning the hard disk on the next startup. You only need to set AutoScan=0 under in C:\MSDOS.SYS.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-04-18 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
The following is quoted from Wengier's post at 2003-4-16 19:55:43:
It's also very simple to keep Win9x from scanning the hard disk on the next startup. You only need to set AutoScan=0 under in C:\MSDOS.SYS.


Yes, that way it won't scan the disk, but it still can't guarantee there won't be disk problems. I'm not against disk scanning. If you didn't shut down normally, then it should scan when it's supposed to. I just hope to use a command-line program to shut down the win9x system properly, instead of directly pressing the machine's power button and then simply making it not scan the disk on the next boot.

I hope the moderator will read other people's posts more carefully, because your attitude represents the attitude of your whole forum, and it also fully shows your scholarly spirit. Right now you give me the impression of being a bit careless.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 4 Posted 2003-04-18 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It's not that I didn't read carefully. I understand your purpose very clearly. It's just that I don't really know the method for shutting down directly from a DOS box under Win9x either, so I didn't answer directly.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-04-18 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Since that's the case, you could choose to remain silent. I think that would be better than giving an answer that misses the point.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2003-04-18 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
Create a shortcut, and enter this as its content:

rundll32 user,exitwindows
Floor 7 Posted 2003-04-18 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
I suddenly remembered that there seems to be a WINOFF command on the Internet that can directly shut down from a DOS window.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 8 Posted 2003-04-21 00:00 ·  中国 江苏 无锡 电信
初级用户
Credits 132
Posts 7
Joined 2003-04-17 00:00
23-year member
UID 1583
Gender Male
Status Offline
The following is quoted from Climbing's post at 2003-4-16 11:43:33:
I've been looking for this program for a long time. In pure DOS there's atxoff.exe, and under 2k/xp there's shutdown.exe. But I just can't find a command line that can directly shut down the system under win9x. By "shut down the system" here, I mean shutting it down the same way win9x does through Start -> Shut Down, not directly cutting the computer's power and then causing win9x to scan the disk on the next startup.

I can't shut down under pure DOS. There is no such file as atxoff.exe. It's not an external command, is it?
Floor 9 Posted 2003-04-21 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Many thanks to all you brothers for the pointers.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 10 Posted 2003-04-21 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
eliuwei: There is a lot of shutdown software for pure DOS, such as SHUTDOWN, POWEROFF, and so on. They can all do it. There are downloads on this site.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 11 Posted 2003-04-22 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
If WINDOWS is installed, you can also use win /z to shut down.
Floor 12 Posted 2003-05-02 00:00 ·  中国 浙江 宁波 联通
银牌会员
★★★
Credits 1,001
Posts 309
Joined 2002-11-19 00:00
23-year member
UID 283
Gender Male
Status Offline
Shutdown Windows : RUNDLL.EXE shell32.dll,SHExitWindowsEx 1
Log Off : RUNDLL.EXE shell32.dll,SHExitWindowsEx 0

Just write them into a bat file and that'll do
Forum Jump: