WaitForSingleObject(si.hProcess,INFINITE);//当cmd关闭后,会走到这里。。。CloseHandle(si.hProcess);si.hProcess=NULL;