delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/07/14:05:39

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading long filenames ->problem
Date: Sun, 06 Jul 1997 21:57:10 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 22
Message-ID: <33C014B6.7B7A@cs.com>
References: <33BFFAAB DOT 5C35 AT polbox DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp208.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

thsvr AT polbox DOT com wrote:
> 
> Can someone tell me ( docs, faqs, sources ) how to get real name
> of the file created under w95 ( instead of XXXXX~1.XXX )?

Put "SET LFN=Y" in your environment and DJGPP programs will use the long
filename API when run under Windows 95.  This will not work from a plain
DOS session, or with Windows NT.  There is nothing you need to do in
your program to activate use of LFNs, as they are built into the library
code.

You can change the LFN status permanently by editing 'djgpp.env' and
changing the line that says "+LFN=N" to "+LFN=Y", or by adding "SET
LFN=Y" to your autoexec.bat.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Animals can be driven crazy by pla- |
|       aka Fighteer I       | cing too many in too small a pen.    |
|   mailto:fighteer AT cs DOT com   | Homo sapiens is the only animal that |
| http://www.cs.com/fighteer | voluntarily does this to himself."   |
---------------------------------------------------------------------

- Raw text -


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