Wednesday, February 22, 2006

Best batch file ever

This is the best batch file ever. It enables wake-on-lan on your network card and also enables wakeup for all the other wake-capable devices on your system. I hate DOS... The sooner MSH is on all the Windows boxes, the better. Sheesh.

for /f "delims=, usebackq" %%A in (`powercfg.exe /devicequery wake_programmable`) do @echo Enabling WOL on %%A & powercfg.exe /deviceenablewake "%%A"

0 Comments:

Post a Comment

<< Home