Re: How to copy whole folders?



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.









.



Relevant Pages

  • Re: How to copy whole folders?
    ... First of all your syntax is different than xcopy help shows: ... I want just to move my batch file from one folder to another and run it ... error and restart the same xcopy command until all files are copied. ...
    (microsoft.public.windows.file_system)
  • Re: Copying files in a certain date range to other locations
    ... Using vb5 I am trying to loop through a folder and select files ... I'll mention a couple extra things about file copying. ... IF your moving files, rather than copying, it's always better to use ... the move command behaves like a copy and delete and copy ...
    (microsoft.public.vb.general.discussion)
  • Re: How to copy whole folders?
    ... and the destination folder to have the same name as a source folder ... I do not want xcopy to supress the error. ... and restart the same xcopy command until all files are copied. ... Windows continue copying files but not quitting copying process as it is ...
    (microsoft.public.windows.file_system)
  • Re: cannot use xcopy
    ... "read" access by issuing these commands from the Command ... Thank you for the advise but I want the xcopy to be able through users ... and I get the"cannot create folder - file" from the xcopy... ... Use a scheduled task to move the files from the holding ...
    (microsoft.public.win2000.general)
  • Re: Using xcopy for backup
    ... this gives an error message: ... folder in the root folder of d. ... folders, just tell xcopy to continue, regardless of errors. ... command line to see explanation. ...
    (microsoft.public.win2000.general)