Method of fast batch opening/disabling of network card under Win7 system

Source: Internet
Author: User

For wireless card, Win7 notebook users should not be unfamiliar, many notebook users are installed on their own computer wireless network card, the use of wireless networks for networking, but for some wired users, wireless network card is not too important. So today's little compilation teaches you how to turn on and off the wireless card using batch processing.

How to turn on or off a wireless network card by using batch processing:

1, see their own computer has devcon.exe this software, you can directly in the Windows directory under the SYSTEM32 folder search, but also through the command line run-----------CMD-------DEVCON? To detect, If not, go to Microsoft's website to download and unzip and put it under the System32 directory.

2, check the network card ID: Select the computer icon on the desktop----------- Right-click------------Select the Management menu------------Select Device Manager----------Select the wireless card you want to operate-------right click------------Select Properties--------------Select the Details tab------- ----------Select the hardware ID in the list and record this ID.

3, write batch file: New Notepad on the desktop---------------renamed Xxx.bat (note that the suffix name is bat is not txt)------ Select the file-------right-click-----------Select Edit--------------copy content:

Disable the NIC. bat

@echo off

; Disable the wireless card and replace the contents of the two * numbers with the NIC ID

DevCon disable *pci/ven_14e4&dev_4365&cc_0280*

; Enable the wireless network card, replace the contents between the two * numbers with the network card ID

;d Evcon Enable *pci/ven_14e4&dev_4365&cc_0280*

echo on

Enable NIC. bat

@echo off

; Disable the wireless card and replace the contents of the two * numbers with the NIC ID

;d Evcon Disable *pci/ven_14e4&dev_4365&cc_0280*

; Enable the wireless network card, replace the contents between the two * numbers with the network card ID

DevCon enable *pci/ven_14e4&dev_4365&cc_0280*

echo on

Save shutdown, run it.

The above is the use of Win7 to turn on or off the wireless network card method, you want to turn off or open the wireless network card users, you can try this method.

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.