Header-Flash

Pages

Dec 13, 2010

Tool: Script For Restarting Microsoft Outlook

Below is a batch script for safely restarting Microsoft Outlook.
This is useful for cases where an Outlook process gets stuck and trying to launch Outlook opens the application but prevent Oulook from receiving or sending mails.

Use Notepad to create a new text file and save it with the extension .BAT to make it as a batch file.
Note that the path for Outlook in this example is for Outlook 2010 32bit running on a 64bit Windows.
If you're using a different Oulook or Windows version, change the path according to your system.

The Script commands:

@echo off
taskkill /im outlook.exe /t
echo.
echo.
echo **************************************
echo Please Wait While Restarting Oulook...
echo **************************************
echo.
echo.
sleep 3
taskkill /f /im outlook.exe /t
sleep 3


cls
echo ************************************************************
echo This Window Can Be Safely Closed by Pressing the X Button...
echo ************************************************************
call "C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE" /recycle
exit

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.