Could someone explain or link me something that would explain how to make another program open, do something, then close.
Example ----
This program opens cmd, types "ipconfig", hits enter, then copies "IP v4 address" (Please keep in mind I don't actually want to do this just an example.), Saves it. then closes itself.
@techno01
thanks really helps, but I am looking for something to open and copy specific data. Sorry if this is confusing I'm quite new to this. I guess you could call what I want, a virus. Just to be clear this is not for malicious purposes. Just to explore the science.
Why don't use good old ipconfig | findstr IPv4 in command line? If you still want to do it in C++, you can use following to get output from executed command.