中国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-15 14:56
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » [Help] Looking for a DOS command-line program to shut down the system under Win9x
Printable Version  1,636 / 11
Floor1 Climbing Posted 2003-04-16 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor2 Wengier Posted 2003-04-16 00:00
系统支持 Posts 10,521 Credits 27,736
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.
Floor3 Climbing Posted 2003-04-18 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor4 Wengier Posted 2003-04-18 00:00
系统支持 Posts 10,521 Credits 27,736
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.
Floor5 Climbing Posted 2003-04-18 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor6 pfox Posted 2003-04-18 00:00
银牌会员 Posts 446 Credits 1,451
Create a shortcut, and enter this as its content:

rundll32 user,exitwindows
Floor7 Wengier Posted 2003-04-18 00:00
系统支持 Posts 10,521 Credits 27,736
I suddenly remembered that there seems to be a WINOFF command on the Internet that can directly shut down from a DOS window.
Floor8 eliuwei Posted 2003-04-21 00:00
初级用户 Posts 7 Credits 132
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?
Floor9 Climbing Posted 2003-04-21 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Many thanks to all you brothers for the pointers.
Floor10 Wengier Posted 2003-04-21 00:00
系统支持 Posts 10,521 Credits 27,736
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.
Floor11 pfox Posted 2003-04-22 00:00
银牌会员 Posts 446 Credits 1,451
If WINDOWS is installed, you can also use win /z to shut down.
Floor12 imp Posted 2003-05-02 00:00
银牌会员 Posts 309 Credits 1,001
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023