Run script on resume from standby

  • Thread starter Thread starter Leonid
  • Start date Start date
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.
 
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]
 
Back
Top