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.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
you can edit a batch file (shutdown.bat) and paste the following into it
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
Share this post
Link to post
Share on other sites