- Aug
- 2,056
- 83
Hi,
I was looking for a way to enable/disable WiFi on my netbook from TCC.
My searching took me to a Microsoft utility called DevCon, from (http://support.microsoft.com/kb/311272).
I wrote a batch file, WiFi.btm, to enable/disable WiFi on my netbook;
Note that, according to the KB article, this utility only works on Windows 2000, XP, and Server 2003. I am still using good ole' reliable XP.
Also note that I used DEV_001 because that is what my WiFi device is. Refer to this article, which shows how to use DevCon to determine the ID of your WiFi device.
Devcon can be used for more than just enabling/disabling WiFi, but that is all I need it to do for me for now.
Joe
I was looking for a way to enable/disable WiFi on my netbook from TCC.
My searching took me to a Microsoft utility called DevCon, from (http://support.microsoft.com/kb/311272).
I wrote a batch file, WiFi.btm, to enable/disable WiFi on my netbook;
Code:
@setlocal
@echo off
if %1 eq on devcon enable "*DEV_001*"
if %1 eq off devcon disable "*DEV_001*"
endlocal
Note that, according to the KB article, this utility only works on Windows 2000, XP, and Server 2003. I am still using good ole' reliable XP.
Also note that I used DEV_001 because that is what my WiFi device is. Refer to this article, which shows how to use DevCon to determine the ID of your WiFi device.
Devcon can be used for more than just enabling/disabling WiFi, but that is all I need it to do for me for now.
Joe