Re: How to copy whole folders?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Sun, 22 Jul 2007 21:22:36 +0200
Your Question #1: I gave you this example in my first reply:
xcopy /s /c /d /y "c:\Documents and Settings\Jack\My Documents"
"U:\Backup\"
It clearly shows the source folder name (C:\Documents . . .) and
the target folder name ("U:\Backup"). What is it that you do not
understand?
Your Question #2: It is not possible to get xcopy to stop on
and error, then restart later on. However, you can document
the copy process like so:
xcopy /s /c /d /y "c:\Documents and Settings\Jack\My Documents"
"U:\Backup\" 1>c:\copy.txt 2>&1
Note that this is one single long line. All messages, including any
error messages, will be logged in the file c:\copy.txt.
"Jack" <replyto@it> wrote in message
news:e2F1mAJzHHA.484@xxxxxxxxxxxxxxxxxxxxxxx
Thank you for your comments.
Sorry, if I give you such impression, it was not my intent.
Still I see some issues I do not know how to solve it. It was long time
ago I created a batch file (during DOS era :-)
1.
When using batch file, how to specify:
local folder (where the batch file resides) as a source
and the destination folder to have the same name as a source folder
following the fixed path,
for example: c:\Backup\<here source folder title>
?
2.
I do not want xcopy to supress the error. I want xcopy to stop it on error
and restart the same xcopy command until all files are copied.
Thanks,
Jack
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eFfs3AIzHHA.312@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message
news:O2nwkxHzHHA.4276@xxxxxxxxxxxxxxxxxxxxxxx
In other words:
When using Windows 'Copy' and there is a duplicate file in destination
Windows ask the question:
This is why I recommended the /y switch.
"Overwrite....? I would like to have an option answering "No to All" and
Windows continue copying files but not quitting copying process as it is
doing right now.
Jack
I am getting the impression that you completely ignored the
advice I gave you in my first reply. Unless you spend the
time to try the command I gave you, you have to spend a
lot of time with repetitive copy commands. The choice is yours.
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eOyLKlCzHHA.1184@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message
news:ea1ewoAzHHA.3536@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
It must be a simple solution but I do not know how to do it.
When copying full folders (with subfolders) from one harddrive into
another
hardrive and during copying there is an error stoping the the copy
process
let say 70% files were copied.
What is the best way to copy the remaining files? I do not think,
checking
each subfolders for missing files is the best solution.
Thanks,
Jack
Use xcopy.exe from the Command Prompt. Example:
xcopy /s /c /d /y "c:\Documents and Settings\Jack\My Documents"
"U:\Backup\"
Type xcopy /? at the Command Prompt to see the meaning
of the various switches.
.
- Follow-Ups:
- Re: How to copy whole folders?
- From: Jack
- Re: How to copy whole folders?
- References:
- How to copy whole folders?
- From: Jack
- Re: How to copy whole folders?
- From: Pegasus \(MVP\)
- Re: How to copy whole folders?
- From: Jack
- Re: How to copy whole folders?
- From: Pegasus \(MVP\)
- Re: How to copy whole folders?
- From: Jack
- How to copy whole folders?
- Prev by Date: Re: How to copy whole folders?
- Next by Date: Re: How to copy whole folders?
- Previous by thread: Re: How to copy whole folders?
- Next by thread: Re: How to copy whole folders?
- Index(es):
Relevant Pages
|