如何用C++启动脚本程序
如题。
用WinExec不行,总不能用CreateThread 吧。
高人指点一下。
[解决办法]
什么脚本?
CreateProcess
[解决办法]
使用Shell函数
HINSTANCE ShellExecute(HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Performs an operation on a specified file.
This method allows you to execute any commands in a folder 's shortcut menu or stored in the registry.