中国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-14 06:24
47,811 topics / 349,898 posts / today 1 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » What should be entered at the DOS prompt to shut down, restart, or enter WIN98?
Printable Version  1,682 / 10
Floor1 ekee Posted 2005-05-11 00:00
初级用户 Posts 3 Credits 112
What can be entered at the DOS prompt to shut down the computer, restart it, or enter WIN98?

After booting into the DOS prompt using a WIN98 CD or a WIN98 boot disk (can we say that we have entered DOS? )

What can be entered at the DOS prompt to shut down the computer?

What can be entered at the DOS prompt to restart the computer?

What can be entered at the DOS prompt to enter WIN98?

Floor2 MYS Posted 2005-05-13 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
Shutting down from the command line requires third-party software. You can find it from boot disks like those from Wengier. There is a RESTART in the WIN98 boot disk that can be used to restart, and it can also implement third-party software. Entering the WIN command at the DOS prompt can start WIN98. Just boot your computer, select the 5th item for DOS mode, and then try the WIN command.
Floor3 JonePeng Posted 2005-05-13 00:00
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
There is a program called shutdown.com on Wengier's MSDOS 7.1 boot disk. Running shutdown s will shut down the computer, and running shutdown r will restart it.
Floor4 pfox Posted 2005-05-18 00:00
银牌会员 Posts 446 Credits 1,451
To install Windows 98, to shut down in DOS without using third-party software. win /z
Floor5 JonePeng Posted 2005-05-18 00:00
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
Supplement to the above:
(1) WIN /Z -- Prompt to press any key, then shut down
(2) WIN /W -- Prompt to press any key, then restart
(3) WIN /M -- Restart directly
Note: The /Z parameter does not immediately shut down, but requires pressing any key to continue. To shut down directly, you can cooperate with the ECHO command to automatically press the key, such as ECHO .|WIN /Z. In this way, the WIN command can also be comparable to SHUTDOWN.COM of the Super DOS Boot Disk. The above commands cannot be run in the DOS window of Win9x.
Floor6 pfox Posted 2005-05-24 00:00
银牌会员 Posts 446 Credits 1,451
The following is the statement of JonePeng on May 18, 2005, 18:51:47:

Supplement to the above:
(1) WIN /Z -- Prompt to press any key, then shut down
(2) WIN /W -- Prompt to press any key, then restart
(3) WIN /M -- Restart directly
Note: The /Z parameter does not shut down immediately, but requires pressing any key to continue. To shut down directly, you can use the ECHO command to automatically press the key, such as ECHO .|WIN /Z. In this way, the WIN command can also be comparable to SHUTDOWN.COM of the Super DOS Boot Disk. The above commands cannot be run in the DOS window of Win9x.


It seems that the above person has a thorough understanding. I wonder if the shutdown module of Win98 can be extracted separately? I am using an ASRock motherboard. I have tried shutdown software under DOS but none can shut down. Only the win.com of Win98 can shut down. But now I don't have Win98 installed. So, if the shutdown module of win.com can be extracted, please let me know.
Floor7 JonePeng Posted 2005-05-24 00:00
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
I don't know if the motherboard and power supply upstairs support soft shutdown. The shutdown command can generally make the mainboard with an ATX power supply power off.
Regarding extracting the shutdown module of Win.com, this can only be done by disassembly, and you can refer to this post: http://dos.e-stone.cn/dosbbs/dispbbs.asp?boardID=6&ID=15322&page=1.
In fact, you don't need to install Win98. You can just extract win.com from the installation files of the Win98 installation disk.
Floor8 defrag Posted 2005-05-29 00:00
中级用户 Posts 570 Credits 456
```basic
'shutdown.bas
'Use qb /l or qbx /l
re$ = SPACE$(&H18)
FOR i% = 1 TO &H18
READ a$
h$ = CHR$(VAL("&H" + a$))
MID$(re$, i%, 1) = h$
NEXT i%
duan% = VARSEG(re$)
offe% = SADD(re$)
DEF SEG = duan%
CALL Absolute(offe%)
END
DATA B8, 1, 53, BB ,0, 0, CD, 15 ,B8, 7, 53, BB, 1, 0, B9, 3, 0, CD, 15, B8, 0, 4C, CD, 21


restart.bas:
out &H64,&HFE
```
Floor9 defrag Posted 2005-05-29 00:00
中级用户 Posts 570 Credits 456
win98.bas
shell"win"
Floor10 zxw4131 Posted 2005-06-12 00:00
初级用户 Posts 1 Credits 102
You can enter C:\WINDOWS\SYSTEM32 and then run shutdown -s to shut down the computer, run shutdown -a to cancel the shutdown. There are also some other parameters, you can go and try.
Floor11 JonePeng Posted 2005-06-12 00:00
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
What you mentioned above is only applicable to NT - based systems.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023