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

Number : 5230 Date : 2003-08-07 Author : Kan Yabumoto Subject : Re: Copying Folders and Files with long filenames Size(KB) : 2
John: wrote: >Kan, thanks for your response. Your assumption is correct in that it >is some time since I used DOS. > >I am using Windows 2000 and XXCOPY 16. This time, still one thing puzzles me. Above, it is stated that XXCOPY16 was used. But, the command lines provided in the report shows XXCOPY (not XXCOPY16). Was XXCOPY16.EXE renamed to XXCOPY.EXE and invoked as shown in the report? While the XXCOPY programs can be renamed and executed without a problem, it will add confusion. I assume renaming of XXCOPY16.EXE to XXCOPY.EXE did not take place. Rather, XXCOPY (the 32-bit version) was run. >My objective is to update files on my computer and laptop with the >latest version of each file by date and time. Some of the Directories >and Filenames are 20 digits. If this is the case, it is dangerous to use /CLONE. Maybe, you should use /BACKUP instead. When you are synchronizing two directories, /CLONE will remove any files that are unique in the destination (not found their counterpart in the source). I suppose most people in such a situation want newly created files in either of the two directories to be copied to the other one rather than to be deleted from the both directories. To do this requires /BACKUP rather than /CLONE. >I have created the undernoted batch file but nothing happens. When I >shorten the directory and filenames files from my computer (Drive c:) >are copied to the laptop (Drive G:) and then copied back again to C:. >However all I end up with is the C: drive version on both whether or >not it is the latest version. > >XXCOPY c:\jl\longnames2003\accounts G:\jl\longnames2003 /Clone /DA >XXCOPY c:\jl\longnames2003\invoices G:\jl\longnames2003 /Clone /DA >xxcopy c:\jl\longnames2003\clients G:\jl\longnames2003 /Clone /DA > >XXCOPY G:\jl\longnames2003\accounts C:\jl\longnames2003 /Clone /DA >XXCOPY G:\jl\longnames2003\invoices C:\jl\longnames2003 /Clone /DA >XXCOPY G:\jl\longnames2003\clients C:\jl\longnames2003 /Clone /DA First of all, if "c:\jl\longnames2003\accounts" is a directory name, it is best if you terminate the source specifier with a backslash E.g., xxcopy c:\jl\longnames2003\accounts\ g:\jl\longname2003\ /clone /DA If "c:\jl\longnames2003\accounts" exists as a file, XXCOPY will treat it as a file rather than a directory. Otherwise the source specifier will be interpreted as the filename pattern (single file per directory) which will be searched and copied from all subdirectories in the c:\jl\longnames2003\ directory. I don't think I provided a satisfactory answer here but then, I don't know exactly what was intended. Kan Yabumoto
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.