Date: Thu, 17 Sep 1998 11:29:55 +0300 (IDT) From: Eli Zaretskii To: Doug Gale cc: djgpp AT delorie DOT com Subject: Re: LFNS: A newbie like question. In-Reply-To: <3600B149.E9C8C9B7@mailexcite.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 17 Sep 1998, Doug Gale wrote: > Maybe load an environment file with that in it or something? I don't > really want users to have to mess with their autoexec. If an application absolutely needs to force use of long file names, it could just push LFN=y into the environment at run time: int main (int argc, char **argv) { .... putenv ("LFN=y"); That's all! But most people who work on Windows 9X will have LFN enabled one way or the other, anyway. Those who don't have DJGPP installed, will have it by default; those who do have DJGPP, will enable it on AUTOEXEC.BAT, since otherwise the compiler will complain about streambuf.h and such likes. However, please note that some users could disable LFN on purpose, e.g. if they wanted to see how does the program work with short file names on Windows 9X. For these reasons, I think it's not a good idea to force use of LFN in your programs. Let the users have their way, if they are desperate enough to disable LFNs.