How to run a cmd command, and getting the output to a string variable? Example:
string result = ExecuteFunction("ipconfig");
Now "result" contains:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
......
This shuld be happening without showing any cmd screen, all from the program. Windows platform of course.