ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

help.... need a tool/utility to auto terminate a process

<< < (6/9) > >>

zeemar:
Hi Lanux

I Installed AutoHotKey now

is this the right way ...

...
;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
AllChars     ; InoRT.exe
CLCL         ; InoTask.exe
avgamsvr   ; xyz.exe
avgcc       ; your process goes here
avgupsvc   ; your process goes here
)

Thanks for your help Lanux

jgpaiva:
Hi Lanux

I Installed AutoHotKey now

is this the right way ...

...
;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
AllChars     ; InoRT.exe
CLCL         ; InoTask.exe
avgamsvr   ; xyz.exe
avgcc       ; your process goes here
avgupsvc   ; your process goes here
)

Thanks for your help Lanux
-zeemar (May 05, 2006, 09:27 AM)
--- End quote ---
I think Lanux meant something like this:


--- ---;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
InoRT 
InoTask   
xyz.exe 
)Everything that comes after ';' is a comment, so, it's ignored.
Don't forget you'll still need pskill ;)

zeemar:
Thanks Jpaigva for the clarification.

I created a EXE using ahk2exe but when i run it nothing happens.

Could somebody check this code and tell me if some thing is wrong.

Spoiler; To kill some tasks prior to running any CPU-intensive apps
; Date: 18/03/2006
; Modified from its original version due to a request in DC forums
; Refer: hxxp://www.donationcoder.com/forum/index.php?topic=3413.0
; Adjust path to PsKill as necessary...

#SingleInstance ignore
#NoTrayIcon
DetectHiddenWindows On
SetTitleMatchMode 2   ; not sure if needed but just in case.

;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
InoRT.exe
jusched.exe
InoTask.exe
)
;MsgBox %ToClose% ;test var

;Close AllChars, CLCL, AVGamsvr, AVGcc, AVGupsvc
Loop, Parse, ToClose, |
{
  ;MsgBox, Process #: %A_Index% is %A_LoopField%. ;test var
  Process, Exist, %A_LoopField%.exe
  NewPID = %ErrorLevel%   ; Save the value since ErrorLevel often changes.
  If NewPID <> 0          ;
    {
    ;MsgBox Process %A_LoopField%.exe is found, with the process ID of %NewPID%. ;test var
    Run, C:\MyPrograms\CommonApps\SysTools\pskill.exe %NewPID%
    }
}
Return


Thanks

jgpaiva:
zeemar: Do you have pskill (http://www.sysinternals.com/Utilities/PsKill.html) in the same directory as that script?

zeemar:
Yes i have pskill.exe in the same directory as i had in the script.

Thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version