Lenovo notebook Win7 system to create a batch process to quickly open/disable the wireless network card skills

Source: Internet
Author: User
Tags command line lenovo

1, first check your laptop inside whether there is devcon.exe this software, you can directly in the Windows directory under the SYSTEM32 folder search, you can also through the command line cmd, and then input DevCon? to detect, If not, go to Microsoft's website and download and unzip it to the System32 directory below.

2, view the network card ID: On the win7 system desktop right click on the computer icon to select "Management Device Manager", and then select the wireless network card you want to operate, click the right button to select Properties, and then select the Details tab, select the Hardware ID in the list, record this ID.

3, create batch files: In the desktop space in the right mouse click to select New Notepad, the file name Xxx.bat (note that the suffix name is not txt), and then copy and paste the contents of the following;

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

4, after the paste is finished, save and close, and then just double-click the run that can be implemented quickly open or disable martial arts card.

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.