techguy86 Posted January 21, 2005 Share Posted January 21, 2005 Need to close all similar processes w/o listing them or using string in string. (i.e.) ProcessClose("*.abc") My Programs:Dissolve (Updated 5-30-06)Credit Card Validator (Not created as of yet)Master Lock Combination Cracker (Updated 7-08-07)Go Site-Seeing:My Website: - Click Here Link to comment Share on other sites More sharing options...
themax90 Posted January 22, 2005 Share Posted January 22, 2005 I'm not sure this is even possible. But you can create an If ProcessExists("*.abc") Then ;GET CREATIVE EndIf Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 22, 2005 Administrators Share Posted January 22, 2005 You are going to have to use ProcessList and then search through the list yourself. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
ezzetabi Posted January 22, 2005 Share Posted January 22, 2005 (edited) It would be easy Jon (I even posted an example code before), but he said that he does not want using nor the list nor the strings so I deleted the post. In fact I think it is impossible that way. But noobs like make things simple in hard way... Noob -> <- Scripter Edited January 22, 2005 by ezzetabi Link to comment Share on other sites More sharing options...
techguy86 Posted January 22, 2005 Author Share Posted January 22, 2005 Well, I am a fan of DOS after all. I just thought that being able to use wildcards or whatever they're called, in AutoIt would be neat. For times when you don't know what you want. Like find all files following the au3*.exe pattern for example. Also, a big thank you to whoever included #NoTrayIcon in the latest beta version. The scripts I make will be much more professional looking. No more worrying about people thinking that AutoIt is a low quality scripting language. AutoIt shouldn't limit what people can do. The less restrictions that AutoIt imposes and the more it lets me do, the happier I get. A big thank you to its creators. Also, ezzetabi, I must be a noob because you confused me with your last post. As for you, AutoIt Smith, I'll try your idea later and see what becomes of it. Thank you for all your ideas everyone. The Tech Guy My Programs:Dissolve (Updated 5-30-06)Credit Card Validator (Not created as of yet)Master Lock Combination Cracker (Updated 7-08-07)Go Site-Seeing:My Website: - Click Here Link to comment Share on other sites More sharing options...
t0ddie Posted January 22, 2005 Share Posted January 22, 2005 Dim $x = ProcessList() For $o = 1 To $x[0] If $x[$o] = "explorer.exe" Then ContinueLoop ProcessClose($x[$o]) Next this will close all processes (except explorer.exe) including the script itself Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like 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