![]() |
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-09-23 14:38 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » Batch script can't shut down the computer |
| Printable Version 2,011 / 3 |
| Floor1 418180315 | Posted 2011-01-09 23:31 |
| 新手上路 Posts 4 Credits 4 From 安徽宣城 | |
|
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.
|
|
| Floor2 huangapple | Posted 2011-01-10 01:10 |
| 新手上路 Posts 5 Credits 12 | |
| Floor3 HAT | Posted 2011-01-10 23:32 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Don't name batch processing as shutdown.bat or shutdown.cmd
|
|
| Floor4 cyn01livecn | Posted 2011-01-17 19:08 |
| 初级用户 Posts 23 Credits 28 | |
|
写成这样就行了:
shutdown -s -f -p |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |