Scheduled task kill process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to write a .vbs to kill a .exe file? What I would like it to
do is search for a process. If its running, kill it. Any ideas on how to do
this? Maybe some samples? Thanks
 
Is it possible to write a .vbs to kill a .exe file? What I would like it to
do is search for a process. If its running, kill it. Any ideas on how to do
this? Maybe some samples? Thanks

You can do it with a batch file:

@echo off
tasklist | find /i "winword.exe" && taskkill /im winword.exe
 
Can't seem to get this to work. Don't I just add this to a text file and
rename the extension to .bat and change it to graphics.exe?
 
You paste the lines into something such as "c:\Tools\KillProcess.bat",
then you create a shortcut on your desktop that points to it. Alternatively,
leave "KillProcess.bat" directly on your desktop.
 
Back
Top