Script to change my network conf.

Discussion in 'Computer Science & Culture' started by SG-N, Jun 6, 2005.

Thread Status:
Not open for further replies.
  1. SG-N Registered Senior Member

    Messages:
    1,051
    I'm working with a Pc that I have to connect to many different networks. Each time, I have to change my IP, my GateWay and my DNS and sometimes I also have to change my domain. Is there a way to write a script that could help me? Thus I would "apply" my network configurations instead of changing it line by line (I would have one script for each network).

    Sorry, I forgot : I'm using Windows XP Pro SP2.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Combine Back from the Dead!!!!! Registered Senior Member

    Messages:
    224
    I think i have heared sonthing like that before ill have a look around for ya
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. SG-N Registered Senior Member

    Messages:
    1,051
    Thanks
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. wesmorris Nerd Overlord - we(s):1 of N Valued Senior Member

    Messages:
    9,846
    of course you could do it with a batch file fairly easily.

    do an ipconfig /? at a dos prompt and figure out the syntax for your batch file. you might have to use nslookup for DNS stuff, not sure. would have to look it up to figure it out for sure.
     
  8. SG-N Registered Senior Member

    Messages:
    1,051
    I just checked "ipconfig /?" but it doesn't seems to allow what I want. You can renew your IP on a DHCP network but how could it help me... Thanks anyway because it was a good idea and I found one solution : Netsh.exe
     
Thread Status:
Not open for further replies.

Share This Page