Solved

Syntax for copying from My Documents folder

Posted on 2006-11-20
1
362 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 95

Accepted Solution

by:
Lee W, MVP earned 250 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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