GianAutoitprogrammer 0 Posted May 20, 2011 Hellow AutoIt Community, I'd just want to know how to kill many processes in autoit I know how to kill a process using ProcessClose("") example: the file killallprocesses.txt contains all the processnames that will be killed local $kill $kill = Fileread(@Scriptdir & "\killallprocesses.txt") ProcessClose($kill) ;but it will only kill the 1st line process name help me... Share this post Link to post Share on other sites
wakillon 403 Posted May 20, 2011 Try like this $file = FileOpen(@Scriptdir & "\killallprocesses.txt", 0) While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop ConsoleWrite ( "$line : " & $line & @Crlf ) ProcessClose($line) Wend FileClose($file) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
GianAutoitprogrammer 0 Posted May 20, 2011 tnx wakillon it worked! thank you Share this post Link to post Share on other sites