Page 1 of 1

New to Batch; Have Quick and probally simple question

Posted: 12 Sep 2010 16:57
by SarahProut
Hey dos forum.. I was wondering the command on how to shut down the computer, force all applications to close after 10 seconds?

Re: New to Batch; Have Quick and probally simple question

Posted: 12 Sep 2010 20:52
by orange_batch
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?

Code: Select all

shutdown -s
shutdown -s -f -t 10