Hi,
I have a folder contains last 5 days backup, I'm using the below command for copying
use master
EXECUTE [dbo].[xp_cmdshell] 'Copy C:\commandTestCopy\*.BAK C:\commandTestPaste','NO_OUTPUT';
The command works fine for copying all files in the folder. Is there any condition to copy only one day or the present backups to other location.
Thanks,
From Harish