WIN7 Enable/Disable the wireless card via batch processing

Source: Internet
Author: User

Brother is more lazy, directly on the steps:

1, see if your computer has Devcon.exe  This software, can directly face search. Can also be detected by command line run-----------CMD-------DEVCON, no words to Microsoft's site download ( http://download.microsoft.com/download/1/1/f/ 11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe ) Download the extract and put it below the System32 folder.

2. Check the network card ID: Select the computer icon on the desktop----------- Right-click------------Select Manage Menu------------Select Device Manager----------Select the wireless card you want to operate-------right-click------------Select Properties--------------Select the Specific Information tab------- ----------Select the hardware ID in the list. Record this ID.

3. Write batch file: Create a new Notepad on the desktop---------------the file name is called Xxx.bat (note that the suffix named Bat is not txt)------Select the file-------right-click-----------Select Edit--------------Copy the contents:

Disable the NIC. bat
@echo off

Disable the wireless card and replace the contents of the two * number with the network card ID
DevCon disable *pci\ven_14e4&dev_4365&cc_0280*

。 Enable the wireless card to replace the contents of the two * number with the network card ID
;d Evcon Enable *pci\ven_14e4&dev_4365&cc_0280*
echo on



Enable the NIC. bat
@echo off

, disable the wireless card. Replace the contents of the two * number with the network card ID
; DevCon disable *pci\ven_14e4&dev_4365&cc_0280*

Enable the wireless card to replace the contents of the two * number with the network card ID
DevCon enable *pci\ven_14e4&dev_4365&cc_0280*
echo on

Save to close, execute on it.

WIN7 Enable/Disable the wireless card via batch processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.