
Converting Paths having short name to long versions
I searched DejaNews, Ian Moorish's and Clarence Washington's sites, but
can't find the solution to this one.
Given a fully qualified filespec (path) in its short name version, how
can it be expanded into its full long name version? I mean the folder
names and file name. I'm using VBScript in Win 9x For the esthetics of
displaying the full pathspec, I want to be able to show the long
version. After all, this is a 32 bit code interface, isn't it?
I have had only partial success with various approaches. I can get an
expanded folder name, but not the file name. I have to cheat and preset
the active folder in a batch procedure before launching the script. It
seems that all of the VBScipt naming methods (BaseName, GetFileName,
Name, Path, BuildPath, etc) leave valid names unchanged. They just
parse/concatenate the sting(s) provided, without performing any
conversion. How do I achieve the conversion?
BTW, I want to stay with the standard install of WSH and the VBScripting
engine. I'm not looking for another set of objects or another object
library. Thanks anyway. I want to be able to distribute the script
only and have others be able to run it without installing anything else.
Any help would be greatly appreciated. Thanks
Tom Lavedas
-----------
http://www.*-*-*.com/ ~tglbatch/