PDA

View Full Version : Batch file to end processes?


Kelldor
12-26-2005, 07:07 AM
Hi folks, could anyone pls tell me how (or link to where I can find out how) I can make a batch file that I can execute at desktop that will shut down certain processes for me? (ex. anti virus, etc.). Getting annoyed with doing ctrl-alt-del and ending all the tasks whenever I want to run a benchmark. Any info would be greatly apreciated. Thanks.

Kelldor
12-26-2005, 08:10 AM
I did some more searching and figured it out, lol. I found this utility suite free for download called PSTools. all the utilities in it are run from the command prompt. one of them is called PSkill. I created a new .txt file on my desktop and renamed it to a .bat file. Then I put in the lines:

pskill ashServ.exe -t
pskill ashDisp.exe -t
pskill alg.exe -t
pskill ashMaiSv.exe -t

The "-t" kills any dependancies. It immediately killed my Avast anti virus program running in the systray, and left no references to it in the task manager :)

Pretty cool utility I think. I am already aware of how to use administrative tools/services to keep processes from starting up at boot up, however I prefer my AV to start up for normal every day use. If interested you can get it from http://www.sysinternals.com/Utilities/PsTools.html. G'luck!

JAWS
12-27-2005, 09:52 AM
cool Kelldor! sounds like a great program. :)