-
Hy guys,
I found the IP number of my machine in \HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0000\IPAddress.
I need to move my computer sometimes and the IP needs to be changed.
Can I create a program, with VB, using APIs call (teached by Jonh Percival) to change the IP using this registry path?
What do you thing about?
Emidio
[Edited by Emidio on 04-26-2000 at 11:56 AM]
-
Well there's more to it than that. You're also going to have to change your gateway, DNS servers, WINS servers (if you use them), and any other network specific settings. You could just make .reg files to update this but its going to rewuire a reboot anyway.
-
Ok rchiav.
Other informations about the Lan needs to be changed to, I know.
I'll do a simple logoff and leave W98 ask about the another user.
But, if I change exactly these informations only, the informations on Control-Panel are changed too? If I change on registry that informations will work well? :)
Tkx
-
if you change all necessary settings, it probably will work. i think, that controlpanel utilities are read (and save) their data mainly out of the registry. if u really intrested in it, you can backtrace all registry-activity by using REGMON (a really great tool :) from sysinternals.
hth
taLON
-
The network applet in the control panel is just a fancy interface to the registry. As long as you catch everything, it will work. I do this now at work for newly cloned machines. I just run a reg file to update DNS information, novell client information, etc.