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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -