New to Batch; Have Quick and probally simple question
Moderator: DosItHelp
-
- Posts: 1
- Joined: 12 Sep 2010 16:55
New to Batch; Have Quick and probally simple question
Hey dos forum.. I was wondering the command on how to shut down the computer, force all applications to close after 10 seconds?
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: New to Batch; Have Quick and probally simple question
http://ss64.com/nt/shutdown.html
I don't know about forcing applications to terminate after 10 seconds. -t is likely for issuing the shutdown command itself, and -f would force termination immediately.
Maybe running the command twice works?
I don't know about forcing applications to terminate after 10 seconds. -t is likely for issuing the shutdown command itself, and -f would force termination immediately.
Maybe running the command twice works?
Code: Select all
shutdown -s
shutdown -s -f -t 10