long filenames under BP7.0 ? 
Author Message
 long filenames under BP7.0 ?

i am trying to read files with long filenames in the DOS shell of
win'59 .... it doesn't work, of course - any suggestions ?

thanks :)



Wed, 18 Jun 1902 08:00:00 GMT  
 long filenames under BP7.0 ?

Quote:

>i am trying to read files with long filenames in the DOS shell of
>win'59 .... it doesn't work, of course - any suggestions ?
>thanks :)

You should get Ralf Brown's Interrupt List. I found my copy on
garbo.uwasa.fi and it's called INTER49A.ZIP to INTER49F.ZIP. But maybe
there is a new version. For now the following should do the trick (but
I have not tried it):

INT 21 7160 - Windows95 - LONG FILENAME - GET SHORT (8.3) FILENAME FOR
FILE

Category: D - DOS kernel

Inp.:
        AX = 7160h
        CX = 0001h
        DS:SI -> ASCIZ long filename or path
        ES:DI -> 67-byte buffer for short filename
Return: CF set on error
            AX = error code
                02h invalid component in directory path or drive letter only
                03h malformed path or invalid drive letter
            ES:DI buffer unchanged
        CF clear if successful
            ES:DI buffer filled with equivalent short filename (full path,
                  even if relative path given, and all uppercase)
Note:   this call returns the short name for any long-filename
portions of
          the provided pathname or filename
SeeAlso: AH=60h,AX=7160h/CX=0000h,AX=7160h/CX=0002h
Copied from Ralf Brown's Interrupt List

Hope that helps.
Georg

Georg Stegmueller



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Long filenames with BP7

2. BP7 / Long Filenames LFN

3. Release LFN v1.10 - Long filename unit for Win9x and TP6 up to BP7

4. Release LFN v1.10 - Long filename unit for Win9x and TP6 up to BP7

5. Release LFN v1.09 - Long filename unit for Win9x and TP6 up to BP7

6. Release LFN v1.09 - Long filename unit for Win9x and TP6 up to BP7

7. Release LFN v1.08 - Long filename unit for Win9x and TP6 up to BP7

8. Release LFN v1.08 - Long filename unit for Win9x and TP6 up to BP7

9. Long filenames Win/95 under BP7?

10. Long FileName - Short Filename conversion

11. Long filenames in DOS mode

12. extend borland pascal to long filenames and use of win95/98/me/xp filedialogs

 

 
Powered by phpBB® Forum Software