I'm trying to use ROBOCOPY to move all files, folders, and subdirectories from one location to another. There are some files that SHOULD NOT be moved. I want to store a list of these files that are NOT to be moved in a text file.
What syntax would the robocopy be for 1. The robocopy command? 2. The syntax of the files for exclusion. As in does the path need to be absolute?
I have looked around but all the posts seem to tip toe around the idea
ROBOCOPY ^
"C:\SOURCE" ^
"C:\TARGET" ^
/E
ExclusionList.txt
-file1.txt
-file2.txt
If i just need /XF pointing to the exclusion file? or does /XF point at each exlcuded file?
or do I have to do this with the :
/JOB:jobname : Take parameters from the named JOB file.
but how do I use /JOB.... would it be a text file with the extension .JOB... and if so how can I use variables from there.
Thanks,