rem ** Rename this to a bat file and execute on the Exchange Server ** rem rem How do you compact an Exchange File after messages have been deleted? rem rem Exhange is basically a bit fat mdb file similar to Access. rem This compact utility works for Exchange 2000. rem For more informaton see rem XADM: How to Defragment with the Eseutil Utility (Eseutil.exe) rem http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q192185& rem rem '---------------------------------------------- rem ' Copyright 2002 Superior Software for Windows rem ' www.ssw.com.au All Rights Reserved. rem rem ' VERSION AUTHOR DATE COMMENT rem '1.0 AC 5/8/2002 Written by AC, DDK and Tom Howe rem '---------------------------------------------- rem rem Stop the Exchange Information Store Services net stop "Microsoft Exchange Information Store" rem Look at file sizes before dir C:\Exch2000\MDBDATA\*.edb rem Compact and Repair the Private Information Store. rem "c:\Program Files\exchsrvr\bin\eseutil.exe" /d "c:\Program Files\exchsrvr\mdbdata\priv1.edb" C:\Exch2000\bin\eseutil.exe /d C:\Exch2000\MDBDATA\priv1.edb rem Compact and Repair the Public Information Store. rem "c:\Program Files\exchsrvr\bin\eseutil.exe" /d "c:\Program Files\exchsrvr\mdbdata\pub1.edb" rem C:\Exch2000\bin\eseutil.exe /d C:\Exch2000\MDBDATA\pub1.edb rem Look at file sizes after dir C:\Exch2000\MDBDATA\*.edb rem Start the Exchange Information Store Services net start "Microsoft Exchange Information Store" pause