www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/04/09:34:38

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
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
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

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

- Raw text -


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