Mail Archives: djgpp/2004/10/25/16:15:22
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | "Mike C" <My DOT address AT end DOT of DOT post>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Long file name support
|
Lines: | 40
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1106
|
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106
|
Message-ID: | <rZcfd.136$5Y6.14@newsfe6-win.ntli.net>
|
Date: | Mon, 25 Oct 2004 20:02:31 GMT
|
NNTP-Posting-Host: | 62.253.115.224
|
X-Complaints-To: | http://www.ntlworld.com/netreport
|
X-Trace: | newsfe6-win.ntli.net 1098734551 62.253.115.224 (Mon, 25 Oct 2004 21:02:31 BST)
|
NNTP-Posting-Date: | Mon, 25 Oct 2004 21:02:31 BST
|
Organization: | ntl Cablemodem News Service
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
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'
- Raw text -