Discussion Locked

Batch file

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

If anybody could help me with the following batch file code I would appreciate it.

I connect to two offices with different IP address. When I connect to office1 it grabs the IP address right away but when I connect to office2 the IP address from office 1 does not release right away. I have to run winipcfg and release the IP address from office1 and then click renew all. I need to write a batch file to automatically does it for me.

5 replies

by don christner

winipcfg has options you can use from a DOS prompt or within a batch file. You should be able to make a batch file like -

winipcfg /release
winipcfg /renew

If you go to a DOS prompt and type winipcfg /?, it will show you the options.

Don

by farzan

Windows 98 IPConfiguration Command Line Options :
1 - /Renew_all
2 - /Release_all
3 - /Renew N ( Adapter Number N)
4 - /Release N

GoodLuck

This discussion is closed to new replies.