I am using a robocopy batch file to backup my work. This is the code in my .bat file:
@echo off
cls
echo press any key to continue backup!
pause
ROBOCOPY "F:\source" "D:\destination" /s /e /xf *.sas7bdat /xd "F:\directory_to_exclude"
echo backup complete
pause
However this does not work and the log output shows that robocopy does not distinguish the destination from the source.
Source: F:\source D:\destination
Dest -
Files *.*
Files excluded: *.sas7bdat
Directories excluded: F:\directory_to_exclude
---------------------------------------------
Error: no folder destination specified
What needs to be changed in the robocopy syntax?