Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Determine If Outlook is Running

Status
Not open for further replies.

gaelin

Technical User
Jan 13, 2004
35
US

I'm using Redemption to send email and when email is sent and Outlook is not running the mail remains in the inbox. However is Outlook is running, the mail is dispatched.

Hence how can I determine if Outlook is running?
 
Take a look at the tasklist command:
Code:
tasklist /svc

Let us know your results!

X
 

That shows a list...how do I capture the list into a table, cursor or text file?
 
This will save the result to a text file on the C: drive by the name of out.txt:
Code:
tasklist /fi "IMAGENAME eq OUTLOOK.EXE" > C:\out.txt


How't that?

X
 

Got it! Using the filter didn't work, but this did:

tasklist > C:\out.txt

I can parse this text file to find out what I need.

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top