Solved

Logging the xxcopy operation

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

23 Experts available now in Live!

Get 1:1 Help Now