Показать полную графическую версию : [решено] Завершить процесс с плавающим именем
Добрый день!
Есть процесс "setup_1241242104"
Как написать скрипт так, чтобы завершался любой процесс начинающийся на "setup_" ?
$aProcList = ProcessList (http://www.autoitscript.com/autoit3/docs/functions/ProcessList.htm)()
For (http://www.autoitscript.com/autoit3/docs/keywords.htm#For) $i = 1 To (http://www.autoitscript.com/autoit3/docs/keywords.htm#To) $aProcList[0][0]
If (http://www.autoitscript.com/autoit3/docs/keywords.htm#If) StringLeft (http://www.autoitscript.com/autoit3/docs/functions/StringLeft.htm)($aProcList[$i][0], 6) = 'Setup_' Then (http://www.autoitscript.com/autoit3/docs/keywords.htm#Then)
ProcessClose (http://www.autoitscript.com/autoit3/docs/functions/ProcessClose.htm)($aProcList[$i][1])
EndIf (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf)
Next (http://www.autoitscript.com/autoit3/docs/keywords.htm#Next)
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.