[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 9143 Date : 2004-11-05 Author : Garry Deane Subject : Re: lower case copy Size(KB) : 1
--- In xxcopy@yahoogroups.com, "elfen69" wrote: > > i need to copy only a group of files existing in lower case. > the ncl and ncu switches seem to control the case of the output > files. is there a switch that controls the input case and only > acts upon them. thanks in advance ... John's right that xxcopy doesn't include a case sensitive selection switch. However you can use a utility like SED http://www.student.northpark.edu/pemente/sed/index.htm to find the uppercase filenames and create an exclusion list of these files for xxcopy. Something like: pushd c:\source dir . /a-d/b | sed -n /[A-Z]/p > \xxcopy.xcl xxcopy . /L/ex:\xxcopy.xcl Note that this only works with a single directory. You could modify it to handle subdirectories but only if your subdirectory names are lower case. If you subdirectory names might have uppercase characters, you'll need to use something like a FOR command to walk the directory tree processing each directory one at a time or processing the xxcopy.xcl file to weed out file paths that are uppercase but with lower case file names. Quite do-able but a bit complicated. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.