Hi,
I have created *.bat file which is executing through Windows - Scheduled task with given time.
Now i would need same which should run auto once the outlook mail received with subject line as "Welcome" .
*.bat file is saved in desktop.
Hi,
I have created *.bat file which is executing through Windows - Scheduled task with given time.
Now i would need same which should run auto once the outlook mail received with subject line as "Welcome" .
*.bat file is saved in desktop.
This has been cross posted here
http://www.outlookforums.com/threads...daily?p=318970
Lost a bit of intrest in this one but hey
Look into rules and the answers there .. and you need to run code against the MS Outlook not the other way arround and You are suggesting
even more here
http://social.technet.microsoft.com/...3-914ad1f2e3f1
There You go You now know how to SHELL
I would like to share code one of the expert of Microsoft Outlook MVP is designed to my given thread
Here the code goes
Sub yogananda(MyMail As MailItem)
If InStr(1, MyMail.Subject, "Welcome") > 0 Then
Shell "c:\temp\a.bat"
Shell "c:\temp\b.bat"
Shell "c:\temp\c.bat"
End If
End Sub
This official MSFT docs on Shell usage, helped me.
docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/shell-function
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks