[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Logging the xxcopy operation

Posted on 2006-11-20
4
Medium Priority
?
806 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 96

Accepted Solution

by:
Lee W, MVP earned 1000 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 96

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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

656 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