I'm not sure if this is exactly what you are looking for, but I use it to make copy and compact the DB at the same time.

http://support.microsoft.com/default...;en-us;Q209979