GianAutoitprogrammer Posted May 20, 2011 Share 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... Link to comment Share on other sites More sharing options...
wakillon Posted May 20, 2011 Share 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 Link to comment Share on other sites More sharing options...
GianAutoitprogrammer Posted May 20, 2011 Author Share Posted May 20, 2011 tnx wakillon it worked! thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now