I am modifying a batch script to move a directory from one place to another. In the batch code, there are these two lines. I don't understand the first parts
echo xcopy %SOURCE_FILE% %TARGET_FILE% /Y /Z /C /F 1>>"%logfile%" 2>&1
echo F|xcopy %SOURCE_FILE% %TARGET_FILE% /Y /Z /C /F 1>>"%logfile%" 2>&1
F|xcopy
mean?F|xcopy
on the second line, what is the difference between the two?The first writes the command it is about to execute to a log file, but does nothing useful.
The second actually executes XCOPY but answers the question that gets asked with the letter "F" presumably when XCOPY asks "Do you mean Files or Directories?"