How to detect upper/lower case diffs in file/folder names in dir tree? Robocopy feature?

D

Dennis Halver

The problem of many so called "synchronization" tools is that they simply backup a
directory tree from one source to a target. Almost all of them do NOT detect changes
in upper/lower case of file or folder names.

So assume I have two absolute equal directory trees beginning with

D:\myprojects\*
and
W:\backup\myprojects\v2009\*

Now I change some chars in a folder name in the source from lower to upper case
resp. vice versa e.g.

D:\myprojects\l1b\versionAA12\*
to
D:\myprojects\lib\Versionaa12\*

This change is NOT detected by standard sync/backup programs. The folder name in the target dir
remains untouched.

Is there a tool which allows the detection of upper/lower case changes/differences?

Does e.g. Robocopy detect them (with a special option) ?

Dennis
 
P

Pegasus [MVP]

Dennis Halver said:
The problem of many so called "synchronization" tools is that they simply
backup a
directory tree from one source to a target. Almost all of them do NOT
detect changes
in upper/lower case of file or folder names.

So assume I have two absolute equal directory trees beginning with

D:\myprojects\*
and
W:\backup\myprojects\v2009\*

Now I change some chars in a folder name in the source from lower to upper
case
resp. vice versa e.g.

D:\myprojects\l1b\versionAA12\*
to
D:\myprojects\lib\Versionaa12\*

This change is NOT detected by standard sync/backup programs. The folder
name in the target dir
remains untouched.

Is there a tool which allows the detection of upper/lower case
changes/differences?

Does e.g. Robocopy detect them (with a special option) ?

Dennis

While the "ren" (rename) command will rename files according to the
capitalisation you type, all of the "copy" commands I know will retain the
upper/lower case of the target file, regardless of the way the source file
name is spelt. You would have to write a batch or VB Script file to
synchronise file name capitalisation.
 
P

Pegasus [MVP]

Dennis Halver said:
The problem of many so called "synchronization" tools is that they simply
backup a
directory tree from one source to a target. Almost all of them do NOT
detect changes
in upper/lower case of file or folder names.

So assume I have two absolute equal directory trees beginning with

D:\myprojects\*
and
W:\backup\myprojects\v2009\*

Now I change some chars in a folder name in the source from lower to upper
case
resp. vice versa e.g.

D:\myprojects\l1b\versionAA12\*
to
D:\myprojects\lib\Versionaa12\*

This change is NOT detected by standard sync/backup programs. The folder
name in the target dir
remains untouched.

Is there a tool which allows the detection of upper/lower case
changes/differences?

Does e.g. Robocopy detect them (with a special option) ?

Dennis

While the "ren" (rename) command will rename files according to the
capitalisation you type, all of the "copy" commands I know will retain the
upper/lower case of the target file, regardless of the way the source file
name is spelt. You would have to write a batch or VB Script file to
synchronise file name capitalisation.
 
D

dadiOH

Dennis said:
The problem of many so called "synchronization" tools is that they
simply backup a
directory tree from one source to a target. Almost all of them do NOT
detect changes
in upper/lower case of file or folder names.

So assume I have two absolute equal directory trees beginning with

D:\myprojects\*
and
W:\backup\myprojects\v2009\*

Now I change some chars in a folder name in the source from lower to
upper case
resp. vice versa e.g.

D:\myprojects\l1b\versionAA12\*
to
D:\myprojects\lib\Versionaa12\*

This change is NOT detected by standard sync/backup programs. The
folder name in the target dir remains untouched.

Is this portion of the source path...\l1b\

supposed to be the same as this one? \lib\

If so, do you want to have just both AA12 and aa12 in the destination? If
so, you can't because DOS considers them to be the same and you can't have
two directories with the same name in a directory.

Or do you want the AA12 directory in the destination to be changed to aa12?
If so, what basis would you think a program could use to effect that change?
Folders have a creation date but none for modified so you can't use that;
even if they had a "modified date", DOS wouldn't consider swapping case as a
modification because even if the long file name changed, the DOS directory
entry wouldn't.

As others said, you could write something to do it but frankly I think you'd
be money ahead to find a way of differentiating other than case...maybe AA12
to AA-12 or -AA12. Dates are always good too, 20090728_AA12, eg.

--

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top