delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/05/21:30:52

Message-Id: <199807060130.CAA09445@sable.ox.ac.uk>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Endlisnis <s257m AT unb DOT ca>
Date: Mon, 6 Jul 1998 02:24:53 +0000
MIME-Version: 1.0
Subject: Re: Long Filenames - can they always be on?
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com

On  5 Jul 98 at 20:40, Endlisnis wrote:

> Matthew Conte wrote:
> 
> > My program will recognize LFN's if LFN=y in the environment, but is there
> > any way to make it *always* recognize LFN's (unless the OS doesn't support
> > it) without having that environment variable set?  In other words, can it be
> > handled at compile-time rather than run-time?
> 
>     How does one access LFN's at all?  Is it an interrupt call?

DJGPP functions will use LFNs if possible.  You have to be running on 
a Windows 95 machine, in a DOS shell from the GUI, for this to work, 
and (as I said in my other reply) you must not have an environment 
variable `LFN' set to `n'.  The default djgpp configuration 
automatically sets `LFN' to `n' unless you set it otherwise, so put 
"set lfn=y" in your `autoexec.bat' file.

When you've done that, djgpp's library functions should be able to
see the long filenames.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


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