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-01 12:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch script can't shut down the computer View 1,885 Replies 3
Original Poster Posted 2011-01-09 23:31 ·  中国 广东 深圳 电信
新手上路
Credits 4
Posts 4
Joined 2010-12-20 23:07
15-year member
UID 179588
Gender Male
From 安徽宣城
Status Offline
In the batch processing, only "shutdown -s -f -t 0" is written. After running, the command prompt keeps running "shutdown -s -f -t 0", but it just doesn't shut down, and changing the parameters doesn't work either.
Floor 2 Posted 2011-01-10 01:10 ·  中国 福建 南平 电信
新手上路
Credits 12
Posts 5
Joined 2011-01-04 11:43
15-year member
UID 180303
Gender Male
Status Offline
Floor 3 Posted 2011-01-10 23:32 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Don't name batch processing as shutdown.bat or shutdown.cmd
Floor 4 Posted 2011-01-17 19:08 ·  中国 上海 电信
初级用户
Credits 28
Posts 23
Joined 2010-11-26 11:37
15-year member
UID 178303
Gender Male
Status Offline
写成这样就行了:
shutdown -s -f -p
Forum Jump: