From: Martin Str|mberg Message-Id: <200103041434.PAA07837@mother.ludd.luth.se> Subject: Re: Fileutils 4.0 port and ginstall To: djgpp-workers AT delorie DOT com Date: Sun, 4 Mar 2001 15:34:30 +0100 (MET) In-Reply-To: <3AA2451A.24DE1704@phekda.freeserve.co.uk> from "Richard Dawe" at Mar 04, 2001 01:37:30 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Richard Dawe: > ginstall c:/windows/command.com b > > creates b.exe. I haven't yet written code to distinguish between .exe and > .com formats. As COMMAND.COM is an .EXE in disguise you won't be able to do this right unless you look at the extension. Which leads up to... > I am unsure how to decide that a file is a DOS batch file. The patches to > ginstall for DJGPP currently modify the target filename, depending on the > source file's file format. Here's some pseudo-code: ... this. The easiest way is to look at the extension of the filename. > Out of interest, has anyone been testing alpha 2 of Fileutils that I > prepared in October last year? See: > > http://www.phekda.freeserve.co.uk/richdawe/djgpp/fileutils No, sorry. Right, MartinS