I wrote this so we could have users at work run it and automatically compress their PST's. Depending on the size, it could take several hours!
#include <GUIListView.au3>
;~ BlockInput(1)
SplashTextOn("Compacting now", "This may take hours...", 250, 40)
;//Runs the mail application that is in control panel.
$Path = FileGetShortName(@CommonFilesDir & "\System\MSMAPI\1033\MLCFG32.CPL")
Run(@SystemDir & "\control.exe " & $Path)
WinWait("Mail Setup", "", 3)
ControlClick("M