QProcess process; int nRet = process.execute("TASKKILL /IM AppServer.exe /F"); process.waitForFinished();