delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/29/09:00:03

From: "Kenton W. Mellott" <melken AT co DOT tds DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <GWP2b.1404$nu6 DOT 523 AT newsfep1-gui DOT server DOT ntli DOT net> <3f4c17b2 DOT sandmann AT clio DOT rice DOT edu>
Subject: Re: Long file name support
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <31F3b.3654$cQ1.975803@kent.svc.tds.net>
Date: Fri, 29 Aug 2003 09:28:31 GMT
NNTP-Posting-Host: 69.21.9.97
X-Complaints-To: abuse AT tds DOT net (TDS.NET Help Desk 1-888-815-5992)
X-Trace: kent.svc.tds.net 1062149311 69.21.9.97 (Fri, 29 Aug 2003 04:28:31 CDT)
NNTP-Posting-Date: Fri, 29 Aug 2003 04:28:31 CDT
Organization: TDS.NET Internet Services www.tds.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Charles Sandmann" <sandmann AT clio DOT rice DOT edu> wrote in message
news:3f4c17b2 DOT sandmann AT clio DOT rice DOT edu...
> > I have written a utility that operates on a source file and creates a
new
> > target file in the same directory. My OS is Win2K.
> > To use my program, I choose the source file with Disk Explorer, drag it
onto
> > the desktop, and drop it onto a link to my DJGPP-compiled program. The
> > program operates and creates a new file with the same path and file name
as
> > the source, but with a different extension - only the file name gets
> > shortened from
>
> > PathName\MyLongFileName.EFT    to
> > PathName\MyLong~1.EFT
>
> This is probably a feature of the drag/drop interface.  It sees the image
> is a DOS image, and assumes it doesn't support short names, so helpfully
> sends the short name.
>
> If you really want the long name you can try to call one of the LFN
> API calls to try and expand it.
>
> > I also read the installation notes, and I see that long file name
support
> > requires a TSR to be running, but it was not clear to me whether this
was
> > only to allow the files of the DJGPP distribution to have long file
names,
> > or whether it would give LFN support to programs compiled under DJGPP.
>
> LFN TSRs are not required under Windows 2000 or Windows XP if you have
> upgraded to the V2.03 refresh or V2.04 alpha test.
>
>
Is the LFN TSR needed if you can access the DOS interrupts with assembly
language?  Hans Lunsing wrote some PowerBASIC code for handling long file
names, filed as PBlfn322.zip on web page
http://www.basicguru.com/dikkenberg/dos/pbsrca.html
It is mainly assembly code for getting the DOS interrupts.

Sincerely,

Gregory D. MELLOTT


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019