Date: Sun, 5 Mar 2000 09:48:38 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Mariano Alvarez =?iso-8859-1?Q?Fern=E1ndez?= cc: "djgpp-workers AT delorie DOT com" Subject: Re: [Fwd: Re: short file names when using LFN] In-Reply-To: <38BEF6F5.2C79B4A2@teleline.es> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 3 Mar 2000, Mariano Alvarez =?iso-8859-1?Q?Fern=E1ndez?= wrote: > This, your program output: > ---- > C:\PROGDJ>pr1 longfilename1.txt > `longfilename1.txt' -> `C:\PROGDJ\LONGFILE.TXT' > > C:\PROGDJ>pr1 longfilename2.txt > `longfilename2.txt' -> `C:\PROGDJ\LONGFILE.TXT' > > And this, the output of my routine: > ---- > C:\PROGDJ>lfngsfn longfilename1.txt > Long: longfilename1.txt > Short: C:\PROGDJ\LONGFI~1.TXT > > C:\PROGDJ>lfngsfn longfilename2.txt > Long: longfilename2.txt > Short: C:\PROGDJ\LONGFI~2.TXT > ---- > Do you see the difference? Yes, you are right. _truename uses a slightly different system call, which is not what you want. (On my system, numeric tails are disabled, so the results of both programs are identical. That's why I thought my method worked like yours.)