Converting Paths having short name to long versions 
Author Message
 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/



Sun, 15 Jul 2001 03:00:00 GMT  
 Converting Paths having short name to long versions
I tried to figure this one out too without success.  I'd be interested in
the solution if you find one...

Mike Harris

|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.pressroom.com/~tglbatch/



Wed, 18 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Converting Long File Names to Short File Names

2. Converting Long File Names to Short File Names

3. Converting Short File Names to Long File Names

4. registry %1 argument and short/long path names

5. Convert Long Path to Short

6. Getting short file name from long file name:

7. Long Path Names give Runtime error 76 - Path not found

8. Long Path Names give Runtime error 76 - Path not found

9. Long names from short.

10. how to get short path name

11. WSH Run does recognizes only short DOS convention file path names

12. Long File Names in ASP ... Convert with VBScript to Short File Names

 

 
Powered by phpBB® Forum Software