Hi there guys
I was wondering how i could run a batch file based on the subject in a newly received mail?
so far i have:
any help is greatly appreciatedPrivate Sub Application_NewMail() Dim MyMail As Outlook.MailItem If MyMail.Subject = "RUN SQL DAVE" Then Shell "D:\Documents and Settings\dmcginnis\Desktop\SR PROD LOGIN.Bat" End If End Sub
Cheers
Mr MaGoo
Magoo.Inc MMVII
If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks