That would be a "chicken and egg" problem. You could do what you suggest if you already had the files named with long names. That is, the files are extracted with names like "2001_0~4.TIF" so GetLongPathName() will return "2001_0~4.TIF" (that is the only name that the file system has been given for that file).
I worry that even the original solution is not enough as the encoding depends on the order in which the files were created (that is, it is not uniquely determined from the set of file names)! Unless the files are listed in "creation order", you can't recover the long names from just the short names!
-
tye
(but my friends call me "Tye")