Board index » delphi » Long FileName - Short Filename conversion
David Tetard
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
David Tetard
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Long FileName - Short Filename conversionHi, I'm using BPW 7.0 under Windows 3.1 but any reply in any language will In order to be used under Win95 and use some of its features, I would I know I have to look at int 21h but I've never coded in asm and am If anybody has some informations, thanks in advance. David. |
A.A. Olowofoye
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Long FileName - Short Filename conversionQuoteDavid Tetard (mcdst...@fs1.ch.umist.ac.uk) wrote: : : I'm using BPW 7.0 under Windows 3.1 but any reply in any language will : be appreciated. : : In order to be used under Win95 and use some of its features, I would : like to be able to convert between Long Filenames (with and without : full path) (for display) to Short filenames (old 8.3 format to use on : I/O) and vice-versa. : : I know I have to look at int 21h but I've never coded in asm and am : afraid of doing it on my own. : Try my (free) TPWIN32 package. Do a net search for tpw32_10.zip. It contains Best regards, The Chief |
Jesper de Jon
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Long FileName - Short Filename conversionQuoteDavid Tetard wrote: It doesn't hurt to try, does it? You computer is not going to explode if you make a mistake. The worst that can happen is that it locks up, and you'll have to press the reset button (ooh that's so scary !! :-)) Quote> If anybody has some informations, thanks in advance. (jes...@xs4all.nl) |
Andrea MicaPis
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Long FileName - Short Filename conversionIl giorno Wed, 17 Sep 1997 08:37:25 +0000, David Tetard Quote>Hi, and you will find a unit which handles LFN. "Grattatio pallarum omnia mala fugit" (A.Laforgia) |
Robert Scho
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Long FileName - Short Filename conversionQuoteDavid Tetard wrote: the underlying operating system commands that messed with file names, but I was able to spawn a DOS command (that was built into my Pascal system). I accordingly built a command of the form DIR whatever.ext > myanswer, i.e. I asked DOS 7 to give me a directory listing, putting the result in a file. Note that DOS 7 gives listings that have both the 8.3 and long file names on the same line. It then was a simple matter to parse the directory listing, and I had the information I needed. Plus, by appropriate choice of wild cards in my whatever.ext request, I could "filter" the listing right up front. Bob Schor |
Mark van der Eynde
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Long FileName - Short Filename conversionThis is a multi-part message in MIME format. --------------6F43477B3A0D QuoteDavid Tetard wrote: forgetting to bring in. You use int 21h without ASM, pretty simple. Note that I have cheated a bit, I only allow for a maximum filename of 255 characters, whereas you should allow for 260. Mark program longname ; { Longname to shortname } --------------6F43477B3A0D program longname ; { Longname to shortname } --------------6F43477B3A0D-- |
1. Short filename to long filename conversion
2. Long Filename to Short Filename
3. Converting a short filename into it's long filename
4. Converting Short Filenames to Long Filenames
5. Help - Win32 API - Short Filename to Long Filename
6. D2: Long filename to Short Conversion
7. Convert Win95 filename into short filename
8. Long filename to 8.3 filename??