You would think XCOPY would have a switch to do this, but if so I haven't
been able to puzzle it out. It dances all around it, but doesn't make one -
or a combination - to do specifically that. No matter what I try, if I copy a
file from one subdirectory (folder) to another, a new folder - with the exact
same name, which I didn't think was possible - is created, with the file
inside.
Is there any way to use XCOPY to update my second drive with all changes
made to the first, including new directories, but ONLY new directories? If
not, can anyone suggest a way to do this, preferably without messing about
with the registry? Thanks.
"JDGuin" <JDG...@discussions.microsoft.com> said this in news item
news:105F4787-AA9D-4BAB...@microsoft.com...
Hacking the registry is definitely not the answer. On the other hand I am
not sure that I completely understand what you're trying to achieve. A
couple of examples might clarify the issue - one example showing what you
*do* want to copy, the other with what you *do not* want to copy.
Gene
"JDGuin" <JDG...@discussions.microsoft.com> wrote in message
news:105F4787-AA9D-4BAB...@microsoft.com...
Say, at the beginning of my workday, both Drives are the same: they both two
folders, Folder 1 & Folder 2. Folder 1 contains two files, File 1 and File 2,
and Folder 2 contains one file, File 3.
During the day, File 1 is changed, File 2 is not changed, File 3 is deleted,
and Folder 3 is created and contains File 4.
I need to make Disk B match Disk A. And if there are any subfolders, I need
them to be handled similarly. I need to do this without duplicating folders,
which XCOPY does. For example, if I tell XCOPY to copy only files created
today from a given folder on Disk A, it filters the files all right, but
instead of understanding the existing directory structure and noticing that
the destination folder already exists, it creates another folder with the
same name.
It seems a simple enough concept. Disk A & Disk B are identical at the
beginning of the day. During the day, Disk A is changed. Before I leave work,
I want to make Disk B identical again to Disk A. I want a command to change
Disk B -- to copy changed files, copy new files, delete deleted files, create
new folders and subfolders and delete folders and subfolders I deleted during
the day, along with any files they contain.
Copying one disk to another is time-consuming when the disks contain a large
quantity of information; and copying individual files and folders is
cumbersome if many changes have been made.
Do you know how this can be done?
"Pegasus [MVP]" wrote:
> .
>
Q:\Data\Folder1
exists then it is impossible to create a further folder of the name
Q:\Data\Folder1
Anyway, if you wish to synchronise folders then robocopy.exe /purge may be
your answer. You can get it from here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
"JDGuin" <JDG...@discussions.microsoft.com> said this in news item
news:AFABFE73-3DAA-4047...@microsoft.com...
Karen's Replicator
http://www.karenware.com/powertools/ptreplicator.asp
--
dadiOH
____________________________
dadiOH's dandies v3.06...
...a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
"Here Today" wrote:
> .
>
I just tried to reproduce the effect, and for some reason this time it
worked like it was supposed to. This is like when you car has a problem, you
take it to the mechanic, and everything works fine.
It may be impossible, but it happened anyway. I know. I saw it.
Now that I got it to work, perhaps my problem is solved. On the other hand,
it may act up again. If it does, I'll come back and tell you about it.
Thanks for your kind attention.
"Pegasus [MVP]" wrote:
> .
>
Replace Q:\My Files with the actual name of the folder that you believe
holds two subfolders with identical names. When finished, post the contents
of c:\dir.txt. Note also that the following two folder names are *not* the
same:
Q:\My Files\Budget 2009
Q:\My Files\Budget 2009
Note also that one can add a hidden space ($FF) to the end of a file name.
This could give the appearance of identical names even though they are quite
different. The method I showed you further up would reveal this too.
"JDGuin" <JDG...@discussions.microsoft.com> said this in news item
news:BA9620F0-F3D9-4E1E...@microsoft.com...
Like some other responders, I'm not sure I know _exactly_
what you want to achieve, but here's the XCOPY
command I use to do something similar, namely updating
on a USB thumb drive a saved copy of My Documents.
The command is issued while in My Documents, with the
thumb drive mounted as J:
XCOPY *.* J: /D /E /C /Q /H /R /Y /K
Check out the eight switches I've used and see if this
command is useful to you.