Page 1 of 1
Windows shutdown script
Posted: September 2nd, 2008, 5:58 pm
by beerglass007
Hi
I'm running SABNZBD on my windows XP machine and wanted to know how I could create a script which would shutdown my machine when finished.
The command to shutdown a windows XP machine is shutdown -s
But how do I make this a script and select it as a post script
Many Thanks
Re: Windows shutdown script
Posted: September 2nd, 2008, 6:04 pm
by switch
There is no need for a separate script, you can choose this option in the "Action on queue finish" drop-down. The location for this setting varies in the different skins. Default+Smpl: Top of queue page, Plush:In the main drop-down.
Re: Windows shutdown script
Posted: March 22nd, 2009, 1:44 pm
by qubito
But you have to set this when it starts up. Is there anyway to do this automatically? I want to set SABnzbd+ to open every day at 00:00hrs check the watched folder and start to download...when downlaoding is finshed I want the PC to shut down.
Re: Windows shutdown script
Posted: March 23rd, 2009, 2:07 pm
by dvdapex
qubito,
Can you have your power-settings (Control Panel \ Dislpay \ Screen Saver \ Power Savings (I'm not positive on what it's called since I'm not at a machine that has this enabled). And have it set to shutdown whatever after 15 minutes of inactivity?
If you have that, then your scheduled task will have your machine turn on at 00:00 hrs and then it'll have work to do. Approx 15 minutes after SABNZBd is done, your machine will shut down (or hibernate or standby)
Re: Windows shutdown script
Posted: April 10th, 2009, 7:13 am
by Laat
Create a .txt file with this command:
shutdown -s -f -c "Download finished"
rename it to .bat and place it in the postscript folder.