Long File Names in ASP ... Convert with VBScript to Short File Names 
Author Message
 Long File Names in ASP ... Convert with VBScript to Short File Names

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




Sat, 21 Dec 2002 03:00:00 GMT  
 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
:

:
:
:
:



Sat, 21 Dec 2002 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. How to convert long file names to short file names

5. Api function to convert Long File Names To Short Dos File Names

6. Getting short file name from long file name:

7. Get long file name from short file name

8. Long File Names and Short File Names

9. Get Short File Name from Long File Name?

10. Long file names to short file name

11. long file names to short file name

12. Long File Names and Short File Names

 

 
Powered by phpBB® Forum Software