RoboCopy Log Files missing whitespace?

Posted by TwystNeko on Super User See other posts from Super User or by TwystNeko
Published on 2012-06-04T17:59:00Z Indexed on 2012/06/22 9:18 UTC
Read the original article Hit count: 241

Filed under:
|
|

So I'm working on a script to use RoboCopy to copy a bunch of files, and log what it's copied.

It works reasonably well, except for the logfiles. They tend to look like this:

C:\Users\Tech\Documents\desktop.initechscan1.jpgtechscan2.jpgtechscan3.jpgtechscan4.jpgtechscan5.jpgwsus.jpgwsus2.jpgC:\Users\Tech\Documents\My Music\C:\Users\Tech\Documents\My Pictures\C:\Users\Tech\Documents\My Videos\C:\Users\Tech\Documents\My Digital Editions\

As you can see, the log seems to be missing all whitespace and separators between entries. Is there something I can do to fix this? It's kind of frustrating.

The commandline I'm using is this:

C:\Users\Tech\Desktop>Robocopy.exe C:\Users\Tech\Documents c:\Temp /e /l /b /xj /xf ntuser.* desktop.ini *.lnk /np /njh /log:migratedfiles.txt /v

I have the /l in there since I'm debugging, and it's the easiest way to keep from copying everything a million times.

© Super User or respective owner

Related posts about Windows

Related posts about script