AutoHotkey Community

It is currently May 27th, 2012, 11:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Can't kill process on W7
PostPosted: April 15th, 2010, 11:43 pm 
Offline

Joined: September 14th, 2004, 11:03 pm
Posts: 21
I run a compiled ahk script on W7 with admin privileges.

The main reason to do so is to kill some service which hangs from time to time. I first try to "stop service" politely. Sometimes it works, but sometimes it eats 100% of its cpu core and reports "stopping..." state. It can go on forever.
In this case I just need to kill the bastard which I do with something like this

Code:
Process, Close, SmartCom2.exe
if(ErrorLevel = 0)      ; was closed
      MsgBox not closed
else
      MsgBox closed

To my suprise it simply reports "not closed" no matter how many times I call it. Again I try to kill a service by a script admin privileges. The same action completes with success via windows task manager.

What am I missing ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2010, 12:21 am 
Offline

Joined: February 27th, 2009, 9:11 am
Posts: 693
Location: Burbank, California
look into http://technet.microsoft.com/en-us/libr ... 91009.aspx

Because of a faulty add-on, I had to "kill" Firefox. I used
Code:
Runwait, taskkill /im firefox.exe /f, , Hide


which did the trick

_________________
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group