Scheduled task kill process

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
 
P

Pegasus \(MVP\)

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
 
G

Guest

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?
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Can't kill a process 1
unable to kill processes 5
XP Search Hangs 3
Can't kill processes 2
RDC Issue. 1
Interpreting Task Manager 5
Killing the command shell will not kill its child process ? 2
wishlist 12

Top