[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 809
  • Last Modified:

Logging the xxcopy operation

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
cornell256
Asked:
cornell256
  • 2
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
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
 
cornell256Author Commented:
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
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
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
 
cornell256Author Commented:
thanks so much!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now