Okay here is what I want to achieve, I want to be able to write in DOS from my program that I am creating. I've execed it with:
Now I want my program to enter commands in DOS or text or anything. Is this very complicated? Moderatly Complicated? Could someone help me?
char szPath = "C:\\WINDOWS\\system32\\cmd.exe";
HINSTANCE hRet = ShellExecute(
HWND_DESKTOP, //Parent window
"open", //Operation to perform
szPath, //Path to program
NULL, //Default directory
SW_SHOW); //How to open
By the way this is a crosspost from cpp-home.com because I just want to let both sets of regulars have a crack and my problem.