From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: longfilename api ? Date: Sun, 02 Mar 1997 19:29:01 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 29 Message-ID: <331A457D.1D74@cs.com> References: <331cbd41 DOT 103883637 AT news DOT interport DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp104.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp richard wrote: > > How do I open, close, list, etc. files with long file names? findfirst, fopen, > etc. all seem to use the truncated 8.3 name format. is there a set of library > functions to do this? is there a set of interrupt functions to use - if so, > where do i find details on how to use them? The DJGPP library functions include all the code necessary to use the long filename API under Windows 95. However, you must first tell the program that you want it to do so. This is explained quite clearly in the FAQ (v2/faq210b.zip), but I'll paraphrase: To make DJGPP programs use long filenames, you can do any of the following: - type "SET LFN=Y" from the DOS prompt - Edit 'djgpp.env' and change the LFN setting to "Y" - Edit 'djgpp.env' and comment out the LFN setting, thus allowing programs to choose for themselves. Look in the FAQ for some caveats when using long filenames. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------