在2000下用什么命令可以启动命令提示符窗口(dos窗口)并在此窗口下执行一个文件!!
解决方案 »
- UPDC32
- 郁闷死了,大侠们来看看!!!!
- 用ADO连接数据库的问题
- 通过拖曳应用程序到对话框,得到了应用程序的路径和图标,如何向list control添加应用程序图标?
- 接上一个问题,欢迎大家来讨论下!
- MFC 新手请教一个 CFileDialog 的问题
- 请教delete堆空间,在线等!
- 如何判断异步connect连接成功?
- SDK 高手请进 ReBarWindow32,REBARBANDINFO
- 小白关于MFC文本IO的提问
- 在vc程序中怎样获取icmp差错报文,以及怎样得到ip的原始包,高手帮忙,多谢!
- 有谁给我解释一下coff文件与elf文件格式的区别和联系以及如何使用??,或推荐一些资料
c:\>notepad.exe
打开记事本
cmd.exe /c run.exe
/////
u can use WinExec("run.exe",SW_HIDE) directly
you can do something under dos
HWND hwnd, //this->m_hWnd
LPCTSTR lpOperation,//"open"
LPCTSTR lpFile, //"cmd.exe"
LPCTSTR lpParameters, //"a.txt"
LPCTSTR lpDirectory,//NULL
INT nShowCmd//SW_SHOWNORMAL
);
To open a folder, use either of the following calls: ShellExecute(handle, NULL, path_to_folder, NULL, NULL, SW_SHOWNORMAL);or ShellExecute(handle, "open", path_to_folder, NULL, NULL, SW_SHOWNORMAL);To explore a folder, use: ShellExecute(handle, "explore", path_to_folder, NULL, NULL, SW_SHOWNORMAL);To launch the Shell's Find utility for a directory, use:ShellExecute(handle, "find", path_to_folder, NULL, NULL, 0);