How to robocopy with progress logged to console only

robocopy

I want to run RoboCopy that will update the console with % progress but not clutter the log file with % progress.

The following RoboCopy command will perform the desired copy and append logging information the log file.

RoboCopy <source> <dest> /log+:<log file> /tee

The problem is the log file is cluttered with % progress updates. Therefore I need to changed the command to this:

RoboCopy <source> <dest> /log+:<log file> /tee /np

Now the problem is I don't getting any % progress updates on screen.

I've read http://technet.microsoft.com/en-us/library/cc733145%28WS.10%29.aspx a few times now and can't find a switch(es) I need. Am I missing something or is what I want to achieve not possible?

Best Answer

As nobody has answered this for so long, I thought I'd suggest a couple of things.

If you are using batch scripts, it should not be too difficult to use sed to strip out the unwanted progress information from the log file. I'm not experienced enough with it to give you a solution using it without spending some time on it though.

There is a single .exe file version of sed in UnxUtils (with a slightly more up to date version in the update zip).

Another option would be to use XXCOPY instead of Robocopy. It has a truly ridiculous number of switches (over 230), which allows you to do whatever you want. You have to spend a whole evening choosing which ones you want to use. It also has a GUI progress dialogue box, if you would prefer to use that.

There is a free version for personal use, which cannot be used for automated scripting, as you need to interactively follow prompts, unlike the paid-for version.

XXCOPY

Another alternative is RichCopy, which has a GUI which would can use to choose your options. It can then give you the command-line of you operation for use in batch scripts.

RichCopy

Related Question