Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
windows_wiki:batch_-_auto_restart_shutdown [2014/11/20 19:32] 127.0.0.1 external edit |
windows_wiki:batch_-_auto_restart_shutdown [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Batch - Auto Restart/ | ====== Batch - Auto Restart/ | ||
+ | |||
+ | **General Information** | ||
Different ways to restart or shutdown from the cmd prompt. (could also put into a batch script) | Different ways to restart or shutdown from the cmd prompt. (could also put into a batch script) | ||
+ | |||
+ | **Checklist** | ||
+ | * OS: Windows XP/7 | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== The Code ===== | ||
__Auto Restart After 60 Minutes__ | __Auto Restart After 60 Minutes__ | ||
- | < | + | < |
shutdown -r -t 3600 -c " | shutdown -r -t 3600 -c " | ||
</ | </ | ||
__Auto Shutdown After 30 Seconds__ | __Auto Shutdown After 30 Seconds__ | ||
- | < | + | < |
shutdown /s /t 30 /d p:0:0 /c " | shutdown /s /t 30 /d p:0:0 /c " | ||
</ | </ | ||
__Abort shutdowns or restarts__ | __Abort shutdowns or restarts__ | ||
- | < | + | < |
shutdown -a | shutdown -a | ||
</ | </ |