Changing IP, gateway, etc programatically
-
I'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc) Any pointers on how to do this? Thanks, mutty
I too have been looking in to it. And havent found any way... well except writing a kerner driver. So I use the "netsh" command. I think its available on all windows installations. You can change the IP for the current window session with the help of the IPHelper API (MSDN has examples of its use). But I guess you want to change it permanently. This is how you would write to change the IP address. netsh interface ip set address static Magnus
-
I'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc) Any pointers on how to do this? Thanks, mutty
Did you try doing this with WMI[^]? Regards Senthil _____________________________ My Blog | My Articles | WinMacro