|
-
March 10th, 2003, 08:32 AM
#1
networking
Does Any One Know how/If I can change my network settings from VB?
I have a laptop that is used @ a remote office to VPN to a server. I use the DSL Router to assign (DHCP) a IP address to the laptop. When the laptop is used @ the office I need to assign it a static IP on the LAN.
I was hoping to make a little app to switch the setting based on where the user was logging in.
any suggestions ?
LJ
Hope is the feeling that you get that the feeling that you have will not last very long. 
-
March 10th, 2003, 02:21 PM
#2
Well, since it is only a option toggle button. One radio button is for Dynamic and the other is for static in the IP dialog window. (I hope you know what I am talking about.) If you change the option button from static to dynamic, the IP address in the the fields for static are grayed out but it retains the values.
So basically, you might be better off to write a WSH to SendKeys like if you were doing it from a keyboard without a mouse. Start with Open Network properties and go from there. You will have to write two scripts, one to set to dynamic and the other to set to static.
I do this at my office since I am left handed and my co workers are right handed, we have a WSH script that will switch the buttons.
Don't ask me about WSH or anything, I am only making a suggestion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|