Monthly Archives: July 2008

如何在C/C++代码中执行一个DOS命令(Win平台)

简单来说可以有三种方式可以实现: int system( const char *command ). UINT WinExec( LPCSTR lpCmdLine, UINT uCmdShow ). HINSTANCE ShellExecute( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd ).

Posted in C&C++, 技术为本 | Tagged , , | Leave a comment