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

Number : 2633 Date : 2002-08-09 Author : Kan Yabumoto Subject : Re: Path Length Size(KB) : 1
XXCOPY does check the total pathname length before it uses it so that it does not create an error condition that might cause some "internal" damage. I guess the Win32 (Win95/98 and Win NT/2K/XP) environments are quite robust with this regard. But in DOS, it is well known that when an application program (such as XXCOPY16) passes a path string that is beyond the limit (79 characters + the terminating null byte), the syste will crash. For this reason, XXCOPY does check the path length before its use and generate a specific error message for that. Therefore, when you have any doubt about a strange behavior, you can be assured that XXCOPY will never pass a path that is longer than what is permitted by the system. Having said that, XXCOPY does not have a mechanism to report the full length of a given path, either for a file name or a directory name. On the other hand, if you want to use XXCOPY to convert a path name into fully expanded path string from another form of pathname, it can do so. E.g., Input: ..\xyz\*.log command: xxcopy ..\xyz\*.log /LL // list full path The output will be a fully expanded path of any file that matches the pattern. You may save the output into a list file to a text file by adding /fo. It will be up to you to count the line length of each line of the output file. But, it does not generate the number(s) you are interested in. Kan Yabumoto =============================================================== At 2002-08-08 06:01, you wrote: >Is it possible to use XXCOPY to calculate the path length of files & >folders? If so, how. If not, does anyone know of a utility that can do this? >Thanks.
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.