X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 26 Oct 2004 03:34:58 +0200 From: Florian Xaver User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Long file name support References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 51 Message-ID: <417da85e$0$21776$91cee783@newsreader01.highway.telekom.at> NNTP-Posting-Host: N647P024.dipool.highway.telekom.at X-Trace: 1098754142 newsreader01.highway.telekom.at 21776 212.183.90.216 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! Do you mean plain DOS or Windows. If the problem is only in plain DOS you need a LFN driver. Use DOSLFN (There is a link at www.opus.co.tt/dave/ ) Bye, Flo Mike C said the following / schrieb folgendes (25.10.2004 22:02): > Folks, > > I have looked in the FAQ for this, but didn't find anything that described > what I want - unless I completely misunderstood it. > > I have written a program that operates on a source text file, parses it, and > produces a target text file. > Under Windows, I have made a shortcut to my program, and when I drag the > source file from Windows Explorer, and drop it on the shortcut icon, the > name of the source file, complete with its path, is passed to my program in > argc[1]. I change the extension and use the rest for the path and file name > for the target, so that it appears in the same directory as the source, but > with a different extension. It all works fine. > > The problem is that if the source is > > d:\windows folder1\windows folder2\File with a long name.log > > then the target file is > > d:\window~1\window~2\File w~1.Prs > > The program is quite usable, but for the sake of elegance, I would like it > to give the target file its full name. > > I saw the environmental variable, LFN=1, but that seems to be to make DJGPP > read long file names when compiling etc, not to make it compile my programs > with different features. > > Thanks, > > MikeC > -- > WARNING: My e-mail return address is bogus to confuse the automated spam > address gatherers. > Mental decryption required: > mike*e-col#ntlworld*com > where * = 'dot' and # = 'at' > > --