I always manually change the IP and computer name every time I burn a disc in the internet café.
Recently I made a P processing to automatically change the IP and computer name.
But I want to ask the following:
Some computers have 2 network cards, so there will be "Local Area Connection" and "Local Area Connection 2" or even "Local Area Connection 3".
The command "Netsh interface ip set address 本地连接 static 192.168.1.2 255.255.252.0 192.168.1.1 1" seems to not work.
Is there any way to test: if "Local Area Connection" is connected, set the IP of "Local Area Connection" to the above IP; if "Local Area Connection 2" is connected, change the IP of "Local Area Connection 2"? Because sometimes the network cables are inserted randomly, and the slots where the network cards are inserted are not uniform, resulting in many local connections appearing.
[ Last edited by feixiang9911 on 2007-4-29 at 12:22 AM ]
Recently I made a P processing to automatically change the IP and computer name.
But I want to ask the following:
Some computers have 2 network cards, so there will be "Local Area Connection" and "Local Area Connection 2" or even "Local Area Connection 3".
The command "Netsh interface ip set address 本地连接 static 192.168.1.2 255.255.252.0 192.168.1.1 1" seems to not work.
Is there any way to test: if "Local Area Connection" is connected, set the IP of "Local Area Connection" to the above IP; if "Local Area Connection 2" is connected, change the IP of "Local Area Connection 2"? Because sometimes the network cables are inserted randomly, and the slots where the network cards are inserted are not uniform, resulting in many local connections appearing.
[ Last edited by feixiang9911 on 2007-4-29 at 12:22 AM ]
