Enabling or disabling wireless networking or any connection can be done using a batch file and the devcon utility in Windows XP.
Batch Files and Command Line
Below is a summary of the posts that provide information on how to enable/disable wireless networking using batch files.
- Enable/Disable Wireless Cards Using Command Line
- Disabling Wireless Connection On Startup/Shutdown Using Batch Files
Another option is to use software like out BridgeChecker application to enable and disable adapters
BridgeChecker is a windows utility that can automatically disable/enable wireless interfaces. Whenever your computer is connected to an Ethernet port and the link state is good, the utility can automatically turns off the IEEE 802.11 wireless network interface. This conserves IP address allocation, reduces security risks, resolves dual interface routing issues, and prolongs battery life.