winforms - How can I open and keep open the command prompt from a windows form application in c++? -


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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -