I have a buggy driver for my Wifi USB dongle. Every time the computer wakes from standby, the wifi is disabled.

I created a script to restart the device, but I have no idea how to automatically run it when wake from standby.

I'm using Widnows 7 x64.

link|improve this question

25% accept rate
feedback

3 Answers

This free utility might help : WakeupOnStandBy

Can run a file or open a web page at a predetermined time after a wake-up event, during normal operation, or before performing power operation;

(Note: I have no experience with this utility)

link|improve this answer
feedback

There's a possible solution here: Run script on resume from standby: post #4

If you can [put your machine into standby mode] 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
[your code goes here]

(ping is used because Windows lacks a sleep command)

link|improve this answer
feedback

Here is a link to a script that monitors the event log. Check the log for what the message is for waking up from standby and you should be good to go.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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