![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 3177 Date : 2002-12-02 Author : Brian Phillips Subject : Re: One out of date file triggers copying of whole directory Size(KB) : 0
In message , Kan Yabumoto writes > >Brian: > >I don't think you can do it in one breath for this problem. >But, using a batch file and testing XXCOPY's exit code with >an IF ERRORLEVEL, you should be able to do this. > >The key is the behavior of XXCOPY's /L (list-only) operation >which reports either a successful operation (finding at least >one matched file in a criteria == returns 0) or an unsuccessful >one (100 --- No-files-were-found). > Thanks Ken I had overlooked the 'list' command. Using the batch file 'for' command and iterating directories I can in fact do the process in about half a dozen lines, but the key is certainly the list command. Obviously, two passes of each of the source directories is necessary. Brian
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.