Answer the question
In order to leave comments, you need to log in
How to properly configure XCOPY in MS SQL to copy files for the current day?
I add a job step CmdExec
XCOPY /D:%Date:~3.2%-%Date:~0.2%-%Date:~6.4% J:\FULL\*.bak B:\*.* /Y /E /C /H /R
does not understand %Date:~3.2%-%Date:~0.2%-%Date, unlike cmd which recognizes it without problems.
XCOPY /DJ:\FULL\*.bak B:\*.* /Y /E /C /H /R - works but does not suit that it copies all files from the folder, only the file for today is needed.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question