11

I'm trying to robocopy some files silently. Right now, I have robocopy putting everything into a log file, which is fine, but after it finished, Log File: C:\<logfiledestination> is printed. My command looks like this:

robocopy source destination /mir /xd .svn /log:log.txt /np >nul 2>&1.

From searching online, I thought that >nul 2>&1 would have prevented anything from showing up. I'm extremely new to the windows command line, so if I'm doing something wrong, please let me know!

Edit: I had a phantom half-sentence in there that I missed. Fixed now though.

CoV
  • 111

3 Answers3

17

These switches worked for me:

/NFL : No File List - don't log file names.
/NDL : No Directory List - don't log directory names.
/NJH : No Job Header.
/NJS : No Job Summary.'
Trev
  • 271
3

It looks like these two options may be of help to you:

/NJH :: No Job Header.
/NJS :: No Job Summary.
0
 "/NFL", // No file logging
 "/NDL", // No directory logging
 "/NJH", // No job header
 "/NJS", // No job summary
 "/NP"   // No progress // THIS IS EXTRA OPTION WHICH WILL NOT SHOW PROGRESS