
Long File Names in ASP ... Convert with VBScript to Short File Names
Function LongToShort(LongName)
With CreateObject("Scripting.FileSystemObject")
If Not .FileExists(LongName) Then Exit Function
LongToShort = .GetFile(LongName).ShortPath
End With
End Function
:
: I have a Database in Access and i use one row to define some files
on my
: hard drive, (Long File Name Format).
: I get the results fine but my ASP page does not work properly with
this LFN
: Format and need to be converted to Short File Name (8.3) Format.
: Can i convert them with VBScript, or i have to rewrite them in my
Database
: ??
:
: Thanx for your time.
:
:
: Pantelis Anadolis
:
:
:
:
: