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 11:51
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » The command to restart the computer in DOS state? View 6,379 Replies 19
Floor 16 Posted 2010-07-01 12:16 ·  中国 江苏 盐城 电信
新手上路
Credits 2
Posts 1
Joined 2010-06-18 18:54
16-year member
UID 169083
Gender Male
Status Offline
There is such a command??? I remember in the computer books of those years: Shutdown = turn off the power; Restart = warm boot = ctrl + alt + del
Floor 17 Posted 2010-08-06 17:39 ·  中国 湖南 怀化 电信
新手上路
Credits 4
Posts 2
Joined 2010-07-28 12:16
16-year member
UID 171358
Gender Male
Status Offline
Nice
Floor 18 Posted 2010-08-06 17:46 ·  中国 北京 朝阳区 中国数码港科技有限公司BGP节点
初级用户
★★
Credits 111
Posts 62
Joined 2008-09-05 21:18
17-year member
UID 124905
Gender Male
From http://ms-dos.cz.cc
Status Offline
ECHO G=FFFF:0000 | DEBUG
The above command is enough, which is to call debug and jump to a specific address to achieve restart.
In MS-DOS 7.1, if there is shutdown.com, you can directly use shutdown/r to restart
shutdown/s to shut down

I found online that this debug program can shut down, but I haven't tried it. It is said that it doesn't work under Windows NT:
mov ax,5301
xor bx,bx
int 15
mov ax,5307
mov bx,1
mov cx,3
int 15
Floor 19 Posted 2010-08-09 18:34 ·  中国 福建 泉州 电信
新手上路
Credits 8
Posts 4
Joined 2010-07-17 12:10
16-year member
UID 170642
Gender Male
Status Offline
shutdown.exe -s Shutdown
shutdown.exe -r Shutdown and restart
shutdown.exe -t Time Set the shutdown countdown. Set the timeout before shutdown to xxx seconds. For Windows 2003 system, the valid range is 0-600, default is 30
Floor 20 Posted 2010-08-10 13:56 ·  中国 香港 柴湾互联优势有限公司
新手上路
Credits 6
Posts 3
Joined 2009-12-15 14:54
16-year member
UID 156651
Gender Male
Status Offline
Everyone's remarks are really good!
Forum Jump: