Run script on resume from standby

L

Leonid

Hi.

Is there any way to have a script run when the computer comes out of
standby? I need to re-enable a device I have whenever the computer
comes out of standby.

Thank you in advance,
Leon.
 
T

Terry R.

P

Pegasus [MVP]

Leonid said:
Hi.

Is there any way to have a script run when the computer comes out of
standby? I need to re-enable a device I have whenever the computer
comes out of standby.

Thank you in advance,
Leon.

How do you put your machine into standby mode? If you can do it via a
shortcut then then all you need to do is get it to run this batch file:

@echo off
Rundll32.exe PowrProf.dll,SetSuspendState
ping localhost -n 3 > nul
[code to re-enable your device goes here]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top