🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #360

Re: Long filenames with MS-DOS 7.x

#360
From: Scott Earnest
Date: Thu, 18 Mar 1999 00:00
59 lines
3101 bytes
Andreas Killer wrote:

> Hello everybody.
> 
> I have an idea to write a TSR for MS-DOS 7.x that supports the
> Longfilename-INT's from Win9x. In other words, if I load this TSR I can
> access long filename i.E. with my LFN-unit very easy.
> 
> I've started with the basics (reading and interpret the root-dir of some
> FAT12 upto FAT32 Drives) and I can see that my idea works. But now
> before I start with this enourmous work I think I should ask some
> questions:
> 
> Did you know of a program that works like this?

I have some source, but only works with FAT16, and possibly FAT12 -- and is
entirely unsuitable for TSR code.

> Did you know of a program that support long filenames under MS-DOS in an
> other way?

Just the emulated listing program I mention above.

> Did you have informations for me that can help me to write such a
> program?

Drop me a line for source.  It's too big to post.

> Are you interested to have such a program?

Definitely!

> Did you made some experiments to write a program like this?
> Are you interested to help me to write such a program?

Alas, I've been so busy lately that programming time has been drastically
limited for me.  However, maybe a month or two ago, a message posted to
comp.os.msdos.programmer offered a promising suggestion.  Rather than attempt
to read *everything* sector level, use the FCB findfirst/findnext DOS calls
(refer to RBIL or similar for details) -- I was told these pick up *all*
directory entries, including LFN fragments.  This greatly simplifies the job
and leave you to only need to reassemble the parts correctly in memory.  The
downside to this is that since you'd have to call DOS interrupts from DOS
interrupts, you'll have a major re-entrance problem to work out.

A page with some information explaining how LFN's are stored:

http://www8.zdnet.com/pcmag/issues/1512/pcmg0025.htm

> If you can answer only one of this question please let me know. Thanks
> for your advise.
> 
> By, Andreas.

-- 
Scott Earnest            | SPAM protection in effect. Remove  |
setech@_ix.netcom.com    | "_" as needed for true addresses.  |
earnests@_homenet.lm.com |    UIN:1136443  EFnet:pale_blue    |
sinykal@_cyberspace.org  | URL: http://www.netcom.com/~setech |
Technical Details
Message-ID: <36F0BAF5.858B3811@_ix.netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36EF624B.771AA8E1@t-online.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,3bfb18551829294b
X-Google-Attributes: gid10261c,public
X-Google-Thread: 111659,3bfb18551829294b
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,3bfb18551829294b
X-Google-Attributes: gid108ebd,public
From: Scott Earnest <setech@_ix.netcom.com>
Subject: Re: Long filenames with MS-DOS 7.x
Date: 1999/03/18
Message-ID: <36F0BAF5.858B3811@_ix.netcom.com>
X-Deja-AN: 456040258
Content-Transfer-Encoding: 7bit
References: <36EF624B.771AA8E1@t-online.de>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Who me?  Surely you jest.
X-NETCOM-Date: Thu Mar 18  2:34:33 AM CST 1999
Mime-Version: 1.0
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal,comp.lang.pascal.misc