怎样读取和更改tcpip协议的ip地址及子网掩码.txt

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· 文本 代码 · 共 12 行

TXT
12 行
字号
I use NT as the develop machine. Here is the solution for NT. I think it should be similiar on Win9x machine. 
    REMEMBER: THIS WILL MODIFY REGISTRY AND SERIOUS PROBLEM MAY BE INTRODUCED. 
    1. First of all, you should check the service name of your network adaptercard. Here I assume you have one and only one network card installed on your machine. In the registry, get the value of 
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
    NT\CurrentVersion\NetworkCards\1\ServiceName. 
    2. Find the key of 
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\"ServiceName"\Parameters\Tcpip. Replace the "ServiceName" with whatever you get in the step 1. 
    3. Change the value of "IpAddress" to change IP address. 
    4. Change the value of "SubnetMask" to change subnet mask. 
    5. Change the value of "DefaultGateway" to change default gateway. 
    6. Don't forget to reboot your machine after you make your changes. 
<END>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?