delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/31/18:32:53

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can I "alias" gxx with g++ in DOS/DJGPP?
Date: Tue, 31 Aug 1999 10:45:00 +0300
Organization: NetVision Israel
Lines: 25
Message-ID: <Pine.SUN.3.91.990831104353.15530A-100000@is>
References: <37ca3358 DOT 4780950 AT netnews DOT worldnet DOT att DOT net> <7qdpbk$gij$1 AT nnrp1 DOT deja DOT com> <7qfp4c$g67$1 AT solomon DOT cs DOT rose-hulman DOT edu>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 936085428 10682 199.203.121.2 (31 Aug 1999 07:43:48 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 31 Aug 1999 07:43:48 GMT
X-Sender: eliz AT is
In-Reply-To: <7qfp4c$g67$1@solomon.cs.rose-hulman.edu>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 30 Aug 1999, Endlisnis wrote:

>     Shouldn't it be possible to change the LFN for gxx.exe to
> g++.exe?  What I mean is that the 8.3 filename can be set to
> 'gxx.exe' and the other to 'g++.exe'.

I've searched and searched, but I couldn't find any way of pulling out
such a trick.  Windows doesn't give you any way of telling it just
what the short 8+3 alias should be.  When you rename a file with an
LFN-aware rename function, Windows recomputes and changes the short
alias as well.  And if you rename the short alias (with a non-LFN
rename function), the long name is nuked (more accurately, the short
name is copied to the long one).

If anybody finds a way to do this, please be sure to post here.  It
will allow to solve several annoying problems that currently have no
solutions.

> Are there any Win32 api calls
> to change the short-filename equivalent to a long-filename?

The only call that I know of lets you specify the numeric tail, but
that's all.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019