Skip to content

how can I shutdown Windows ?

Featured Replies

you can edit a batch file (shutdown.bat) and paste the following into it

 

shutdown.exe -s -f -t 5 -c "shutting down the computer now"

 

save the file and you can 'call' it either using Windows Task Manager (start/control panael, scheduled tasks, add scheduled task)

 

the -s in the code above tells shutdown.exe to shut the system down, if you want to reboot the machine change it to -r

 

the -f switch forces running applications to close without warning and the -c displays a comment box to warn the user of the coming shutdown, in addition it adds this info the the eventviewer.

 

the 5 after -t is the number of seconds before the machine is shutdown.

 

cheers

anyweb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.