New to Batch; Have Quick and probally simple question

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
SarahProut
Posts: 1
Joined: 12 Sep 2010 16:55

New to Batch; Have Quick and probally simple question

#1 Post by SarahProut » 12 Sep 2010 16:57

Hey dos forum.. I was wondering the command on how to shut down the computer, force all applications to close after 10 seconds?

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

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

#2 Post by orange_batch » 12 Sep 2010 20:52

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

Post Reply