?
Solved

Syntax for copying from My Documents folder

Posted on 2006-11-20
1
Medium Priority
?
376 Views
Last Modified: 2008-02-01
In a prior question, expert helped me with the xxcopy command as a way to copy files from a damaged disk to an external drive. The xxcopy command died, seemingly after a certain number of failures. So I want to copy just the My Documents folder. But DOS thinks that My is a folder and Documents is a switch. What would be the correct syntax for this command. Here is what I type:

xxcopy G:\My Documents 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
1 Comment
 
LVL 96

Accepted Solution

by:
Lee W, MVP earned 1000 total points
ID: 17985109
Use Quotes.

xxcopy "G:\My Documents" "H:\GBackup" /clone

(I would think this would work with xxcopy - though I never use it - I stick to robocopy and xcopy.... usually xcopy.)
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

764 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