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.
system
command to call that command in a perl script. The>nul
is not hiding the output from perl, so it's still showing up in my perl output. – CoV Sep 19 '11 at 19:14system
. Thanks for your help though! – CoV Sep 19 '11 at 19:19