Subscribe to Windows IT Pro
October 19, 2009 12:00 AM

Q. How can I copy all data from one drive to another with the xcopy utility?

Windows IT Pro
InstantDoc ID #102961
Rating: (0)

A. You can use xcopy to copy all data from one volume to another, including hidden and system files, using the command

xcopy <source volume> <target volume> /s /e /r /c /h /k /o /x /y

The switches mean:

  • /s—system files
  • /e—copies folders and subfolders, including empty ones
  • /r—overwrites read-only files on destination
  • /c—continue on errors
  • /h—hidden files
  • /k—copy all attributes
  • /o—copy file ownership and ACL information
  • /x—copy file audit settings
  • /y—suppress prompt to overwrite existing file
Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.