by James S » Nov 12, 2005 @ 4:22pm
Yup, that's exactly what I was looking for, but now I have what I want to happen set up a little clumsily.
I want my computer to automatically disable my WiFi card if my computer starts up in battery mode, but if my computer starts up plugged in and docked I want WiFi enabled. Right now I'm trying to use Windows's Task Scheduler to do this and I have it automatically disable the wifi using devcon at system start up and then if it detects A/C power to reenable it. Is there a better way to do this? Maybe a batch or COM file that I can if-then? Basically, I want devcon status *APCI0003 to return to me a positive or negative value, and depending upon that value to either devcon enable/disable PCI*...WiFi*[/code]