vote up 1 vote down star

I've created 2 tasks in Task Scheduler on my Vista PC start uTorrent at 2am then close uTorrent (and shutdown PC) at 7am. However i'd like to only like this task to run if I've clicked a shortcut - ideally show something in the tray as well if possible. But not sure how?

flag

migrated from serverfault.com

4 Answers

vote up 2 vote down

uTorrent has scheduling built in.

You could therefore do the following:

  1. Setup uTorrent to only be active between 2am and 7am.

  2. Set up a scheduled task to shut the PC down at 7:10am (to give yourself some leeway). From your question I'm assuming that you don't normally leave your computer on 24/7.

  3. You can then just start uTorrent normally when you have something to download, it will operate between 2am and 7am and then your PC will shut down 10 minutes later.

I should add that uTorrent can cope with the PC shutting down while it's still running, so you could get away without a delay between the end of uTorrent's active time and the machine shutting down.

link|flag
vote up 0 vote down

Set up a batch file using the AT command, like so:

AT 2:00 "[path]/utorrent.exe"

AT 7:00 "shutdown /s /f"

link|flag
vote up 0 vote down

Thanks guys

@ChrisF - will uTorrent wake up my PC if it's in sleep mode at 2am?

link|flag
@rich - the honest answer is that I don't know. I haven't used the scheduling to its fullest extent. – ChrisF Sep 10 at 13:09
my testing shows scheduler wont wake up the PC.. where as my task will so i'll stick that to launch uTorrent at 2am :) – rich Sep 10 at 13:35
vote up 0 vote down

You can control your scheduled tasks using schtasks console command. So you may create a task performing on system start-up disabling you tasks with something like that in .bat file:

schtasks /Change /DISABLE /TN "Start uTorrent"
schtasks /Change /DISABLE /TN "System shutdown"

And then you may create a shortcut to another .bat file enabling tasks once clicked, like:

schtasks /Change /ENABLE /TN "Start uTorrent"
schtasks /Change /ENABLE /TN "System shutdown"

PS. And it should wake up your computer from sleep if you specified to do so in scheduled tasks, but it could be put to sleep again after some user-inactivity timeout.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.