Should work for Vista or Windows 7:
click the Start menu
type in Task Scheduler and run it
On the right, Create Task
Give it a name
(Run only when user is logged in is good and important)
click Triggers
Begin the task On an event
Log: System
Source: Power-Troubleshooter
Event ID: 1
if it's network related, you may want to
[x] Delay Task for 30 seconds
click Actions
add the parameters that will run your application on resume
click Conditions
If you're on a laptop/notebook, you may wish to uncheck
[x] Start the task only if the computer is on AC power
If it's network related, you'll want to check
[x] Start only if the following network connection is available
click Settings
if it's network related, you may want to check the "if task fails", restart every 1 minute up to 3 times.
click ok.
Test it
What would you want to use this for?
I'd use it to reconnect my ssh link if my laptop went to sleep, especially if I'm using it for tunneling.
No comments:
Post a Comment