C # language implementation timed on/off NIC
Program run
Program implementation Main code
Source Code Engineering file (VS2013 project file compiled by)
View network card name drawings
1.win7 flagship version runs:2. Program implementation of the main code:Nic List1// {6 string manage = "SEL ECT * from Win32_NetworkAdapter "; 7 ManagementObjectSearcher searcher = new ManagementObjectSearcher ( Manage); 8 managementobjectcollect
Python winreg items are looped through a subkeyPython winregI was able to retrieve 5 sub keys from the code under my Windows 7 Machine registry hive "HKEY_LOCAL_MACHINE".from _winreg import *try: i = 0 while True: subkey = EnumKey(HKEY_LOCAL_MACHINE, i) print subkey i += 1except WindowsError: passMy question is, how do I base these buttons again? I want to finally list all the keys in software \ \ MICROSOFT \ \ Windows nt \ currentversion \ \ networklist
We want to modify the name displayed under "current connection" on the network connection page, because sometimes we want to have a connection name that is easier to recognize, or you do not want to add a number after the connection (the connection is slightly changed, and the system will add a name for another peripheral device, that is, the number is appended, it looks very uncomfortable =. = ).
The modification is simple, that is, to change the registry values:
HKEY_LOCAL_MACHINE/software/M
Deleting useless network connections in Windows 8 sometimes adds Network Connections repeatedly while using Windows 8. Although this does not affect normal use, a long string of useless connections may not seem pleasing to the eye. In addition, some default network names (such as "Network 2") are neither intuitive nor nice. However, these connections cannot be directly deleted or renamed. We can only use the registry to complete these connections. Click the Network icon for the system tray area
and activate Permissions, then, click the "edit" button next to it. In "add", enter the object name to select "option, enter" local service ", and click" OK.
6. After the interface is returned, check whether the local startup and Local activation options are selected.
7. Finally, enter "dcomcnfg" and click "networklist service" on the displayed page to start the service.
Solve the problem that the local network connection of the computer is disp
Set the local connection to the Flowmeter fee network method:
1, in the computer desktop we also press the keyboard win+r and then enter the Regedit or search in the search for the registry is the same;
2, expand the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Nt\currentversion\networklist\defaultmediacost
3, get the subkey Defaultmediacost administrator rights.
4, on the right to find Ethernet, which is the loc
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.