Discussion Locked

run batch file when email arrives

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi there, I'm running Exchange 2000 and I'd like to know how to run a specif batch file when an email message is received into a specific mailbox that meets specific criteria - for example, a word or phrase contained in the subject line. I'm wondering whether this might be a way to automate service re-starts when I am unable to connect via Terminal Services. (specifically, I have a dynamic IP from dns2go and would like to re-start the dns2go client, but I also have other services I'd like to control)

6 replies

by dodikus

I have idea, but you need outside program to scan folder on hard disk when new message is saved (if you can set this option at all, I'm not to shore).

by jpreou

Although this may have been possible I have since found an alternative quite by accident. I had installed Mail Marshal SMTP and noticed that it could do exactly what I wanted.
Thanks for the suggestion though.

by shmaltz

The following link (remove spaces) will return on how to register an even sink. You can use either the transport sink or the store sink to accomplish what you want, you will to study the code carefuly and then it will work.

http://search.support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&withinResults=&QuerySource=gsfxAdvancedSearch_Query&Product=exch2k&Queryc=how+to+register+event+sink&Query=how+to+register+event+sink&KeywordType=ALL&maxResults=25&Titles=false&numDays=

by shmaltz

If you have trouble running your batch file from within VB. You might want to first write the instruction to run in a text file and then have your batch file read it from there.

by jpreou

Although this may have been possible I have since found an alternative quite by accident. I had installed Mail Marshal SMTP and noticed that it could do exactly what I wanted.
Thanks for the suggestion though.

This discussion is closed to new replies.