@echo off :openie echo -------------closeing outlook---------- taskkill /f /t /im OUTLOOK.exe echo -------------starting outlook---------- start "" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\Outlook 2013.lnk" echo sleep 10 minping 127.0.0.1 -n 600goto openie