From: antares on
I configure router and to make it to work, PC requires constant changes of
TCP/IP settings, changing default gateways, IP addresses, then reboot, etc.
This is very painful work, is it possible to make VBScript that witll take
some preset IP settings from "profiles"(specified in script) and do the rest
work: fill IP addresses is TCP/IP tabs, apply changes, reboot PC if
required. For Win 98 and for Win XP

From: Pegasus [MVP] on


"antares" <antares(a)nospam.microsoft.news> wrote in message
news:#qpzlG3QLHA.4960(a)TK2MSFTNGP05.phx.gbl...
> I configure router and to make it to work, PC requires constant changes
> of TCP/IP settings, changing default gateways, IP addresses, then reboot,
> etc. This is very painful work, is it possible to make VBScript that witll
> take some preset IP settings from "profiles"(specified in script) and do
> the rest work: fill IP addresses is TCP/IP tabs, apply changes, reboot PC
> if required. For Win 98 and for Win XP

You could probably develop some VB Script to do the job but the command
netsh.exe does it already for you, e.g. like so:
netsh interface ip set address "Local Area Connection" static 125.187.7.56
255.0.0.0
netsh interface ip set address local static 192.168.1.1 255.255.255.0
netsh interface ip set address "Local Area Connection" DHCP
netsh interface ip add dns name="Local Area Connection 2" addr=192.168.30.30
netsh interface ip set dns name="Local Area Connection 2" source=static
addr=192.168.20.20


From: antares on

"Pegasus [MVP]" <news(a)microsoft.com> wrote in message
news:%23WxATX4QLHA.796(a)TK2MSFTNGP02.phx.gbl...
>
>
> "antares" <antares(a)nospam.microsoft.news> wrote in message
> news:#qpzlG3QLHA.4960(a)TK2MSFTNGP05.phx.gbl...
>> I configure router and to make it to work, PC requires constant changes
>> of TCP/IP settings, changing default gateways, IP addresses, then
>> reboot, etc. This is very painful work, is it possible to make VBScript
>> that witll take some preset IP settings from "profiles"(specified in
>> script) and do the rest work: fill IP addresses is TCP/IP tabs, apply
>> changes, reboot PC if required. For Win 98 and for Win XP
>
> You could probably develop some VB Script to do the job but the command
> netsh.exe does it already for you, e.g. like so:
> netsh interface ip set address "Local Area Connection" static 125.187.7.56
> 255.0.0.0
> netsh interface ip set address local static 192.168.1.1 255.255.255.0
> netsh interface ip set address "Local Area Connection" DHCP
> netsh interface ip add dns name="Local Area Connection 2"
> addr=192.168.30.30
> netsh interface ip set dns name="Local Area Connection 2" source=static
> addr=192.168.20.20
>
-------------

the netsh.exe not supported win 98 as well?

From: Pegasus [MVP] on


"antares" <antares(a)nospam.microsoft.news> wrote in message
news:u1yO$g4QLHA.2640(a)TK2MSFTNGP05.phx.gbl...
>
> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
> news:%23WxATX4QLHA.796(a)TK2MSFTNGP02.phx.gbl...
>>
>>
>> "antares" <antares(a)nospam.microsoft.news> wrote in message
>> news:#qpzlG3QLHA.4960(a)TK2MSFTNGP05.phx.gbl...
>>> I configure router and to make it to work, PC requires constant changes
>>> of TCP/IP settings, changing default gateways, IP addresses, then
>>> reboot, etc. This is very painful work, is it possible to make VBScript
>>> that witll take some preset IP settings from "profiles"(specified in
>>> script) and do the rest work: fill IP addresses is TCP/IP tabs, apply
>>> changes, reboot PC if required. For Win 98 and for Win XP
>>
>> You could probably develop some VB Script to do the job but the command
>> netsh.exe does it already for you, e.g. like so:
>> netsh interface ip set address "Local Area Connection" static
>> 125.187.7.56 255.0.0.0
>> netsh interface ip set address local static 192.168.1.1 255.255.255.0
>> netsh interface ip set address "Local Area Connection" DHCP
>> netsh interface ip add dns name="Local Area Connection 2"
>> addr=192.168.30.30
>> netsh interface ip set dns name="Local Area Connection 2" source=static
>> addr=192.168.20.20
>>
> -------------
>
> the netsh.exe not supported win 98 as well?

Sorry, I don't know. Why not type netsh at the Win98 Command Prompt to find
out?