+ Reply to Thread
Results 1 to 7 of 7

Run *.bat once the outlook mail received with Subject line "welcome" on daily by user

  1. #1
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Run *.bat once the outlook mail received with Subject line "welcome" on daily by user

    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.

  2. #2
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    This has been cross posted here

    http://www.outlookforums.com/threads...daily?p=318970

  3. #3
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    wow and here

    http://www.msofficeforums.com/outloo...d-subject.html

  4. #4
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    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

  5. #5
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    even more here

    http://social.technet.microsoft.com/...3-914ad1f2e3f1

    There You go You now know how to SHELL

  6. #6
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    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

  7. #7
    Registered User
    Join Date
    02-15-2021
    Location
    California
    MS-Off Ver
    Office 2016
    Posts
    1

    Re: Run *.bat once the outlook mail received with Subject line "welcome" on daily by

    This official MSFT docs on Shell usage, helped me.

    docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/shell-function

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1