| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jul 24, 2004 3:55 pm Post subject: Networking Question |
|
|
Hi, I wanted to create a script to automatic change my network IP address from static to non-static and vice versa. Instead of simulating a bunch of keystrokes and arrow down and and arrow up keys...etc, could someone tell me what application within windows that would take me directly to the popup that would let me change my IP address. I want to create a script that using the Run command to run the application, hopefully this will minimize a bunch of simulated keystrokes.
Thanks ahead. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Sat Jul 24, 2004 4:19 pm Post subject: |
|
|
The best way might be to make a shortcut to the adapter in question, then run the shortcut as in this example:
run, properties "C:\Documents and Settings\Home\Desktop\LAN (CNet Pro).lnk"
sleep, 5000 ; The properties window will disappear when the script exits.
In case it's of interest, I believe there is at least one software utility out there to instantly change your IP configuration from (for example) work to home and vice versa. It might require a reboot, but maybe not even that on some systems. |
|
| Back to top |
|
 |
Larry Guest
|
Posted: Sun Jul 25, 2004 4:43 am Post subject: |
|
|
If you are using Win2K or WinXP, research and use NETSH.EXE
Lar. |
|
| Back to top |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sun Jul 25, 2004 6:24 am Post subject: Thanks Larry |
|
|
Hi Larry,
I found your response to be very helpful. Netsh.exe is exactly what I was looking for to switch back and forth from static and dhcp. Again, thank you very much. |
|
| Back to top |
|
 |
|