Diana (Cda) Posted October 3, 2010 Posted October 3, 2010 (edited) I can, of course, close a process manually but have found that this particular one can't be closed with a ProcessClose. Is there something stronger that AI can use to kill it instead? Thanks. Edited October 3, 2010 by Diana (Cda)
somdcomputerguy Posted October 3, 2010 Posted October 3, 2010 Does WinKill not work for you either? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Diana (Cda) Posted October 3, 2010 Author Posted October 3, 2010 Does WinKill not work for you either?Hi!Well, it's a behind-the-scenes process so it has no window. I can give it a try, but I'm not sure this is the appropriate function to use. But then, what do I know ... <lol> I'll report back, though I am wondering if this is going to work.
Diana (Cda) Posted October 3, 2010 Author Posted October 3, 2010 (edited) Hi!Well, it's a behind-the-scenes process so it has no window. I can give it a try, but I'm not sure this is the appropriate function to use. But then, what do I know ... <lol> I'll report back, though I am wondering if this is going to work. Nah, of course it didn't work <lol>.I know there are freeware apps out there the forcibly can terminate a process after unsuccessfully trying to close it, I'm guessing like what ProcessClose does initially, but I'm trying to find an AI solution first. I'd like to terminate this behind-the-scenes process since I only need it when I'm going to use the app. But it sits there waiting until I need it and that's what I don't like. With an AI script, I could just stick that in the startup folder and have it wait a couple of minutes so that it terminates the process every time I reboot so I don't have to do it manually. ProcessClose just doesn't work on it, though.Anyway, any other ideas appreciated. If not, I'll try one of those more aggressive process terminator thingies out there. Thx. Edited October 3, 2010 by Diana (Cda)
Tyranlol Posted October 3, 2010 Posted October 3, 2010 Personally i prefer CMD (Command Prompt) for those programs that just wont be closed For CMD tskill Firefox Autoit #include <Process.au3> _RunDOS("tskill Firefox") Hope that works for ya - Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
HavikTech Posted October 3, 2010 Posted October 3, 2010 Maybe the process you are trying to close is of some security program's process. protected at Kernel level or using Service. by the way, what's the process name which you are trying to close?
Diana (Cda) Posted October 7, 2010 Author Posted October 7, 2010 (edited) Personally i prefer CMD (Command Prompt) for those programs that just wont be closed For CMD tskill Firefox Autoit #include <Process.au3> _RunDOS("tskill Firefox") Hope that works for ya - Tyranlol It actually didn't but I'm not worrying anymore. This isn't all that critical, it was more an exercise to figure out how to close. But I can still do this manually, if I want to bother. To remind me, I did do up this script in the startup folder:ShellExecute("Taskmgr.exe")Is there any way to get the Task Manager be made to open up in the "Processes" tab? Even more ambitiously, can Task Manager to made to sort the processes? This last is just, again, a wish list kind of thing but if AI can do it, why not? But if not, just getting Task Manager to open up showing all the Processes instead of the default main tab, that would be fine. Then I can decide on any given boot-up if I even want to bother closing things down. It's only that sometimes I am multi-tasking and I need to shut down all unnecessary unnecessary things running. Thanks. Edited October 7, 2010 by Diana (Cda)
wakillon Posted October 7, 2010 Posted October 7, 2010 (edited) Try _RunDOS ( "taskkill Firefox" ) Edit : Or a processclose in a loop... While Processexists( $processname ) processclose ( $processname ) WEnd Edited October 7, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
giogio3 Posted July 11, 2023 Posted July 11, 2023 It worked with me once I ran it as Administrator. If you look at the @error you'll know what the issue is. see https://www.autoitscript.com/autoit3/docs/functions/ProcessClose.htm G Andreik 1
Recommended Posts