how to get short path name 
Author Message
 how to get short path name

Hello,

I am new to VBScript. I would like to know how to get the
windows short path name.  

Thanks,
RK



Tue, 23 Aug 2005 02:22:01 GMT  
 how to get short path name

Quote:

> Hello,

> I am new to VBscript. I would like to know how to get the
> windows short path name.

> Thanks,
> RK

From the WSH 5.6 documentation:

http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/00...
ompositedoc.xml

Function ShowShortName(filespec)
   Dim fso, f, s
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.GetFile(filespec)
   s = "The short name for "   & UCase(f.Name) & "<BR>"
   s = s & "is: " & f.ShortName
   ShowShortName = s
End Function



Tue, 23 Aug 2005 02:46:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting Short Path Names from Long

2. Getting Short Path Names from Long

3. Getting Short Path Names from Long

4. App.Path only returning short path name - Why?

5. app.path only returns short path name

6. App.Path returns "short" path name

7. Getting short file name from long file name:

8. Converting Paths having short name to long versions

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

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

11. Short Path Name in VB.NET?

12. Change long path name to short pathname

 

 
Powered by phpBB® Forum Software