How can I write the following command and document/comment each line?
robocopy ^
\\xxx.xxx.xxx.xxx\dir ^ :: source directory
\\xxx.xxx.xxx.xxx\dir ^ :: destination directory
/mir ^ :: mirror option
/s ^
/r:10 ^
/w:10
This seems to work.
robocopy ^
\\XXX.XXX.XXX.XXX\d$\ ^%= SOURCE DIRECTORY =%
\\XXX.XXX.XXX.XXX\d$\ ^%= DESTINATION DIRECTORY =%
/mir ^%= MIRROR SOURCE =%
/s ^%= COPIES SUBDIRECTORIES =%
/xd ^%= EXCLUDE DIRECTORIES =%
"\\XXX.XXX.XXX.XXX\d$\$recycle.bin" ^
"\\XXX.XXX.XXX.XXX\d$\System Volume Information"
/r:10 ^%= FILE RETRIES (seconds) =%
/w:10 ^%= FILE WAIT TIME (seconds) =%
/v ^%= VERBOSE LOG =%
/log: ^%= LOG FILE NAME =%
"Replicate Files Server.log"