What I am trying to do is make a program, DOS C++, that will take current IP settings, and workgroup settings save them to a file like SysOldSettings.txt somewhere and take settings from inside the program, then test IP and if duplicate, create another random 192.168.0.*. Now my question is is this possible, if not in C++ then what language?
I don't quite understand what you're trying to do. Anything is possible in C++ but without a clarification of what you want to do I can't advise you.
The goal is to create something that will save a computers current IP, Subnet and workgroup, then change them to a specified default in the program, and when wanted, it would restore those in the file. My problem is getting the IP etc and then being able to change them from inside the code.
This link should help you: http://www.codeguru.com/internet/change_ip_address.shtml That's assuming experience with C/C++ though and you didn't mention how well you know the language. If you want a C program to save, change and restore those registry values you'll need to use the API functions designed to manipulate the registry (documented well in the msdn ). If you've got no idea where to start with writing the program I'll hopefully be able to help more. Tomorrow
you could use ipconfig, by greping its resutls ipconfig /all to get the current ip, and i think u can assign an ip there as well, might be worth checking if you dont wanna mess about with the registry