|
@@ -336,6 +336,13 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
|
|
if ( DownloadScript(url, it->strId, "D:\\SAT\\", stScriptUrlResp) )
|
|
|
{
|
|
|
printf("获取脚本下载地址成功:%s\n路径:%s\n", stScriptUrlResp.strURL.c_str(), stScriptUrlResp.strScripFile.c_str());
|
|
|
+ DWORD dwScriptId = RunPyScript(stScriptUrlResp.strScripFile.c_str(), "", "D:\\SAT\\log.txt", TRUE);
|
|
|
+ if ( dwScriptId != -1 )
|
|
|
+ {
|
|
|
+ while( !IsPyScriptOver(dwScriptId, TRUE) )
|
|
|
+ Sleep(100);
|
|
|
+ }
|
|
|
+ CleanPyScript(dwScriptId);
|
|
|
}
|
|
|
else
|
|
|
{
|