Step 1: Create a .bat file. First create a text file and then save it as .bat. Remember the save location.
Step 2: Before you close the file, put this in it: %systemroot%\system32\shutdown.exe -s -t 0. Also shown in the image below. Save and close the file.
Step 3: Now open MS Outlook. Under Home tab, go to Rules and expand the menu. Select Manage Rules and Alerts.
Step 4: On the Rules and Alerts window chick on New Rule while under Email Rules tab.
Step 5: Start off by selecting your template as Apply rule on messages I receive. Click on Next.
Step 6: This is the most important step as it determines what rule should be applied.
Step 6 (a): Select the following rules. For me there is a reason to each:
1 through the specified account- If you have multiple email id’s configured with MS Outlook you must choose which account the rule applies to.
2 sent only to me- The motive is to restrict the email rule trigger based on recipient list.
3 with specific words in the subject- Another constraint so that the receiving email is identified better.
4 with specific words in the body- Sometimes, only the subject may be ambiguous. So a body makes it more refined.
5 on this computer only- If you have Outlook configured with same email addresses on multiple machines you must be cautious about the machine you want to apply the rule to.
Step 6 (b): Once you have selected the conditions you need to specify the content by clicking on each of those links in the second half of the window.
Step 6 (c): Back on the main window, verify that you have associated all conditions. Then click on Next.
Step 7: Next comes the action to be applied when an email is received and all the conditions match. Select start application and delete it.
The action for start application will do your job. However, if you do not delete it the rule may apply again and again on opening Outlook, resulting in a loop.
Step 7 (a): For starting application action, click on the link and select the file you created at the beginning.