Solved

Logging the xxcopy operation

Posted on 2006-11-20
4
779 Views
Last Modified: 2008-02-01
I am using xxcopy to clone a drive onto a backup disk which is damaged. I want to know which files failed in the copy. How do I save the output of this operation.

I am using the command: xxcopy G:\ H:\Gbackup /clone
0
Comment
Question by:cornell256
  • 2
  • 2
4 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 17984693
You should be able to do it by redirecting output -

xxcopy G:\ H:\Gbackup /clone > xxcopy.log 2>&1

or errors only:
xxcopy G:\ H:\Gbackup /clone 2> xxcopy-errors.log
0
 

Author Comment

by:cornell256
ID: 17984741
actually, I don't see the log. where does it get written to?
(G is a damaged disk so I don't want to write it there).
Thanks if you get this additional question!
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 17984771
It gets written to the folder where the command was executed from.  For example,

if you run the command from C:\Documents and Settings\Administrator, then that's where the log should be.

You can specify where you want it stored by adding a path - for example:
      
xxcopy G:\ H:\Gbackup /clone 2>C:\xxcopy.log
0
 

Author Comment

by:cornell256
ID: 17984792
thanks so much!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question