Computing.Net > Forums > Windows NT > IPCONFIG Batch File?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IPCONFIG Batch File?

Reply to Message Icon

Name: RPR
Date: August 24, 2001 at 14:27:49 Pacific
Comment:

Is it possible to create a batch file to change your IP, Subnet Mask, and Default Gateway? I have a laptop user who travels to 2 cities (different subnets) and he has to change all of these, but is not really computer savvy, so he messes this up most of the time. If I had an icon on his desktop where he could run a batch file to do this , it would be great...



Sponsored Link
Ads by Google

Response Number 1
Name: Chase
Date: August 25, 2001 at 06:42:35 Pacific
Reply:

A batch file, no not really.

You CAN do it with registry files, though.

What you'd have to do is locate (in the registry) the IP entry for the NIC in question, and create two files (work1.reg and work2.reg). Once you get all the correct information in there, what he'd have to do is right-click and "Merge" the files, then reboot.

It's not that hard, but you have to understand the registry, or you'll mess it up.

For registry assistance, check out Regedit. It's a pretty good website to bookmark, too.

Chase


0

Response Number 2
Name: Chase
Date: August 26, 2001 at 17:42:02 Pacific
Reply:

Had another thought...

Check out using different hardware profiles. You should be able to set one up for one city, and the one for the other. Then, he'd have to choose a location at boot, but the rest should be OK for him.

I'm not positive it will work, but for a (L)user, it would be the most efficient if it did.

Chase


0

Response Number 3
Name: Greg Piedt
Date: August 27, 2001 at 07:29:50 Pacific
Reply:

Chase is right, a Hardware Profile is all you need, you can copy the one you have and reset the settings, what will happen is when you have more then one a boot menu will come up asking the user wich hardware profile he wishes to use.

Thats it,

Greg


0

Response Number 4
Name: Rick
Date: August 28, 2001 at 08:11:43 Pacific
Reply:

I had thought about that, (Hardware profiles) and it looks like that is the way to go...
Thanks-


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Creating a Service How to Schedule a task in...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: IPCONFIG Batch File?

NT Batch File www.computing.net/answers/windows-nt/nt-batch-file/4206.html

ipconfig batch- change output name www.computing.net/answers/windows-nt/ipconfig-batch-change-output-name/20878.html

check disk usage in batch file www.computing.net/answers/windows-nt/check-disk-usage-in-batch-file/21855.html