winforms - How can I open and keep open the command prompt from a windows form application in c++? -
this question has answer here:
i wrote windows form application in c++ , visual studio 2010 , win7 need open command prompt , type special command run other program.
i use function :
system("cmd.exe /c dir c:\");
but showed second , disappeared! use solve:
cin.get();
but not work!
also tried function :
char program[] = "c:\windows\system32\cmd.exe"; winexec((lpcstr)program, sw_showminimized);
but not work.
can me please ?
thank much!
use system("cmd.exe /c dir c:\\");
Comments
Post a Comment