ShellExecuteEx返回值?
//解压缩文件
void CFileTestDlg::Decompress(const char* strZipFile, const char* strSaveFolder)
{
char strCmdLine[MAX_PATH] = {0};
sprintf(strCmdLine, "x %s %s", strZipFile, strSaveFolder);
SHELLEXECUTEINFO ShExecInfo;
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = NULL;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "WinRAR.exe";
ShExecInfo.lpParameters = strCmdLine; //命令行
ShExecInfo.lpDirectory = "";
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
int iSuccess = ShellExecuteEx(&ShExecInfo); //不管成功还是失败这里都是返回1。到底如何判断解压是否成功呢?
}