View Full Version : TCP/IP Properties
scriptkid
12-05-2001, 02:20 AM
Hello, I need help writing a script. I want to be able to change the TCP/IP properties for a VPN to join the network at work. I have a WIN2K pc that has a static IP address for the private network, this pc is also connected to my work's intranet. When I want to be on the intranet I go to the TCP/IP properties and erase the static IP address and click on "use DHCP". Then when I want to go back to the private network I enter the static IP address that was previously loaded. I need to know if there's a way I can write a script to automate this process. If anybody has an idea, I will really appreciate it. Thanks!!
darkness
12-05-2001, 07:51 PM
Yup you can do this with VBscipt if you can figure out the key strokes to do it you could program it to type it all, It will be a long script etc but it would work. Another Idea though would be to setup a second Nic Card in your PC and plug both into the network Set one nic for dynamic and the other for static and just turn off one and turn on the other when you want to switch. Nic's are cheap and win2k handles them well. Just a thought that might save you alot of time instead of coding it.
I have a WSH file that opens up Defrag and runs it automatically on click if you want to look at it.
Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato
scriptkid
12-06-2001, 02:44 PM
Thank you so much, actually I did look into the 2nd. nic card option, unfortunately I'm running out of pci slots on that system, and I can get another card in there, so I guess I'll have to do it the hard way and code it under VBscript. I'm not very strong with scripting, I'm kind of a newbie at this, do you suggest any good books or any place where I can find information on how to even begin? I want to write it from scratch but I'm afraid it'll take me a little bit to grasp the concept, any help is greatly appreciated, and again thanks so much for replying.
darkness
12-06-2001, 03:56 PM
Well first and formorest pick up the Scripting Documentation version 5.6 it is a great look up tool. Also if you look in some of my previous posts I suggested a couple scripting tools and code. As far as scripting opening program windows etc I have a script that automatically defrags your hard drive when double clicked. Email at darkness@mail.mnsu.edu and I will forward you that script.
Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato
scriptkid
12-11-2001, 10:25 PM
I'm sorry Michael, I've been busy and haven't found the time to get back here. Sure I'll be more than glad to take a look at your script, please e-mail it to me, here's my e-mail: mailto:portfolioy2k@yahoo.com (portfolioy2k@yahoo.com)
Thanks a lot!
<P ID="edit"><FONT class="small">Edited by scriptkid on 12/11/01 16:30.</FONT></P>
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.