Solved

Logging the xxcopy operation

Posted on 2006-11-20
4
761 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now