Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Check if program is running  (Read 2869 times)

0 Members and 1 Guest are viewing this topic.

Petry Bosch

  • Guest
Check if program is running
« on: November 26, 2004, 04:16:46 AM »
Hello
is it possible that DOS can check if an program is running.
im working on an error mail (wich runs from a batch file)
but now i need DOS to check if the mail software is running or not, if running it must send a mail from that mail adres that is logged in, if not it must send a mail from a preset mail adres.

but how

Delboy

  • Guest
Re: Check if program is running
« Reply #1 on: November 28, 2004, 08:06:21 AM »
Hi,
www.sysinternals.com has a commandline program called handle which can gather info about running processes. ie if you want to check whether 'myproggie.exe' is running then 'handle myproggie' will dump 'myproggie' process information. If no info is dumped then the program isn't running.
I don't know whether it can be used within batch files.

Derek.