REM Automating the Outlook ScanPST Repair REM scripted by Anish H. Patel (http://www.opindian.com) CLS @echo on set ScanPST-location="C:\Program Files\Microsoft Office\Office12\scanpst.exe" REM gracefully close Outlook so that the repair scan can run nircmdc closeprocess outlook.exe REM pause for 15 seconds to make sure Outlook has really closed [1sec = 1000 milliseconds] nircmdc wait 15000 REM Run Inbox Repair for all .pst/.ost files cmdscan %ScanPST-location% *.pst *.ost start outlook.exe EXIT