Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Windows XP network settings

Windows XP network settings

Scheduled Pinned Locked Moved System Admin
sysadmin
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dhruvchandna
    wrote on last edited by
    #1

    Hi, I would like to write a program for Windows XP that will change the following network settings depending upon the network I am going to log on into. 1. I.P. Address 2. Default Gateway 3. DNS Server Address. I need this I log on to multiple networks and have to manually go and configure the settings for each network. Thanks in advance. Regards, Dhruv Chandna

    J J H 3 Replies Last reply
    0
    • D dhruvchandna

      Hi, I would like to write a program for Windows XP that will change the following network settings depending upon the network I am going to log on into. 1. I.P. Address 2. Default Gateway 3. DNS Server Address. I need this I log on to multiple networks and have to manually go and configure the settings for each network. Thanks in advance. Regards, Dhruv Chandna

      J Offline
      J Offline
      Johpoke
      wrote on last edited by
      #2

      Im quite sure that you can change such settings via CMD in netsh, or just do start run netsh to see what you can do. You could then create a batch file wich calls the right commands, or make a C++ Console app to do it for you...

      //Johannes

      D 1 Reply Last reply
      0
      • D dhruvchandna

        Hi, I would like to write a program for Windows XP that will change the following network settings depending upon the network I am going to log on into. 1. I.P. Address 2. Default Gateway 3. DNS Server Address. I need this I log on to multiple networks and have to manually go and configure the settings for each network. Thanks in advance. Regards, Dhruv Chandna

        J Offline
        J Offline
        Jerry Hammond
        wrote on last edited by
        #3

        I suggest you start by writing the pseudo-code first, then maybe looking to see if you can do this using a batch file written with Powershell.

        “If we are all in agreement on the decision - then I propose we postpone further discussion of this matter until our next meeting to give ourselves time to develop disagreement and perhaps gain some understanding of what the decision is all about.”-Alfred P. Sloan

        D 1 Reply Last reply
        0
        • D dhruvchandna

          Hi, I would like to write a program for Windows XP that will change the following network settings depending upon the network I am going to log on into. 1. I.P. Address 2. Default Gateway 3. DNS Server Address. I need this I log on to multiple networks and have to manually go and configure the settings for each network. Thanks in advance. Regards, Dhruv Chandna

          H Offline
          H Offline
          Hesbon Ongira
          wrote on last edited by
          #4

          You can also do this on VBScript.

          --------------------------- Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute. Regards, Hesbon Ongira Nairobi, Kenya.

          D 1 Reply Last reply
          0
          • J Johpoke

            Im quite sure that you can change such settings via CMD in netsh, or just do start run netsh to see what you can do. You could then create a batch file wich calls the right commands, or make a C++ Console app to do it for you...

            //Johannes

            D Offline
            D Offline
            dhruvchandna
            wrote on last edited by
            #5

            Hi, Thanks a lot. I made a batch file using the netsh commands and it runs smoothly. Regards, Dhruv

            1 Reply Last reply
            0
            • H Hesbon Ongira

              You can also do this on VBScript.

              --------------------------- Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute. Regards, Hesbon Ongira Nairobi, Kenya.

              D Offline
              D Offline
              dhruvchandna
              wrote on last edited by
              #6

              Thanks a lot for you help. I implemented it using a batch file with netsh commands. But it would be great if you can just tell me how to implemented using VBScript. I am just a little curious to know.

              1 Reply Last reply
              0
              • J Jerry Hammond

                I suggest you start by writing the pseudo-code first, then maybe looking to see if you can do this using a batch file written with Powershell.

                “If we are all in agreement on the decision - then I propose we postpone further discussion of this matter until our next meeting to give ourselves time to develop disagreement and perhaps gain some understanding of what the decision is all about.”-Alfred P. Sloan

                D Offline
                D Offline
                dhruvchandna
                wrote on last edited by
                #7

                Thanks a lot. I wrote a batch file and now it works fine.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups