PDA

View Full Version : Stop programs using .bat


tenchi86
10-02-05, 11:47 AM
Hello, I asked this same question awhile ago when I was using XP. I am now on 2k but think the commands should be the same. My goal is to have a file that will stop firefox, trillian, and winamp with one click. Right now I have tried

@ECHO OFF
taskkill /f trillian.exe
taskkill /f winamp.exe
taskkill /f firefox.exe

@ECHO OFF
taskkill /f /im trillian.exe
taskkill /f /im winamp.exe
taskkill /f /im firefox.exe

I have also tried both ways without the .exe on the end. I am running Windows 2k sp4. Thanks for any help.

Know Nuttin
10-02-05, 04:56 PM
try downloading and using PSKill. I dont' believe 2K has Taskkill in it.

tenchi86
10-02-05, 09:07 PM
Ok, I downloaded PsKill. Now just need to get it working. I am not sure what I need to do with this file. It sounded like I put it with the .bat not in a system folder. Then type like PsKill [-t] <firefox.exe> which does not work. Any ideas on how to use this app?

Know Nuttin
10-02-05, 09:40 PM
drop it into \Winnt\system32. That should be in your "Path" variable so it will look for the command there.

try "pskill -t Processname"