doohoodogg Posted June 16, 2006 Share Posted June 16, 2006 it is possible to make somehow a script that terminate all started processes but not the "x" ones, where x are processes chosen by me. i used ps kill but that is not possible with it. thx Link to comment Share on other sites More sharing options...
marfdaman Posted June 16, 2006 Share Posted June 16, 2006 Sure it is, just use something like this: $excludeprocess1 = "Your Process" $excludeprocess2 = "Your Second Process" etc... $processes = ProcessList() For $i = 1 to $processes[0][0] If $processes[$i][0] <> $excludeprocess1 And $processes[$i][0] <> $excludeprocess2 etc... Then ProcessClose($processes[$i][0]) Next Alzo Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
Daniel W. Posted June 16, 2006 Share Posted June 16, 2006 $excludeprocess1 = "Your Process" $excludeprocess2 = "Your Second Process" etc... $processes = ProcessList() For $i = 1 to $processes[0][0] If $processes[$i][0] = $excludeprocess1 OR $processes[$i][0] = $excludeprocess2 etc... Then ProcessClose($processes[$i][0]) Next Another version if you dont understand other one --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted June 17, 2006 Developers Share Posted June 17, 2006 (edited) $excludeprocess1 = "Your Process" $excludeprocess2 = "Your Second Process" etc... $processes = ProcessList() For $i = 1 to $processes[0][0] If $processes[$i][0] = $excludeprocess1 OR $processes[$i][0] = $excludeprocess2 etc... Then ProcessClose($processes[$i][0]) Next Another version if you dont understand other one true, but only if you want to close your defined excludeprocesses .. Edited June 17, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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