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

<< < (5/9) > >>

zeemar:
Jpaigva,

The first one didn't work either.


Gerome,

I am currently using the batch file which has the following line ...

taskkill /F /T /IM InoRpc.exe

This works fine, but i wanted to avoid manually clicking. If possible I want to have a program which monitors for these processses and issues this type of command to kill them.

Thanks

lanux128:
Actually those processes are not spyware. They are Antivirus related software and my company installed those on my system and I should always have them. Even if i disable the services, they are restarted by the network Admin.-zeemar (May 02, 2006, 02:26 PM)
--- End quote ---

Zeemar:
since you haven't resolved your problem yet, you might want to try a script that i've using. but this script requires  PsKill from Sysinternals. feel free to adapt it to your needs.

Here is the code; 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|
AllChars
CLCL
avgamsvr
avgcc
avgupsvc
)
;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, %ProgramFiles%\SysTools\pskill.exe %NewPID%
    }
}
Return

Rover:
I can't believe no one mentioned these two from sysinternals.com:

http://www.sysinternals.com/Utilities/PsKill.html PsKill for command line killing

and for a gui presentation of running processes try:

http://www.sysinternals.com/Utilities/ProcessExplorer.html Process Explorer.  Can kill a single process or an entire process tree!  Just like killing the family of the rat, not just the rat himself  ;)

zeemar:
Thanks Lanux for the code.

How do I use this code.... I mean how can i convert this code into an EXE file.



Thanks

lanux128:
How do I use this code.... I mean how can i convert this code into an EXE file.-zeemar (May 04, 2006, 03:12 PM)
--- End quote ---
i assumed you had autohotkey installed in your pc but if you haven't, use ahk2exe to convert the script to an EXE file.

to use the script itself, first find out the names of processes that is bothering you via Windows' Task Manager or as mentioned by Rover, Sysinternal's Process Explorer. next you can edit the script to add those processes, replacing the processes already in the script.

...
;declare all unwanted processes
;just processes' name will do
ToClose =
( Join|
AllChars     ; your process goes here
CLCL         ; your process goes here
avgamsvr   ; your process goes here
avgcc       ; your process goes here
avgupsvc   ; your process goes here
)-this is where you change
--- End quote ---

then you're good to go.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version