call vss_setvar.cmd :: Define temporary drive letter dosdev X: %SHADOW_DEVICE_1% SET log_fname=%prefix%%date:~-4,4%%date:~-10,2%%date:~-7,2%.log :: Set this to the source directory SET source_dir="X:\" :: Set this to the destination directory SET dest_dir="Z:\" :: Set this to the files you wish to copy SET files_to_copy=*.pst pst_backup.cmd :: Actual call to do the copy and save the results to a logfile ROBOCOPY %source_dir% %dest_dir% /LOG+:%log_fname% %files_to_copy% :: Delete temporary drive letter dosdev -r -d X: :: Delete temporary vshadow file del vss_setvar.cmd