delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/02/08/17:15:30

Date: Sat, 8 Feb 1997 15:44:31 -0600 (CST)
From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
To: "'OpenDOS newsgroup'" <opendos AT mail DOT tacoma DOT net>
Subject: Re: [opendos] A more ordered fixlist
In-Reply-To: <13383F741A@tui.lincoln.ac.nz>
Message-ID: <Pine.GSO.3.95.970208153634.27649A-100000@sparkie.gnofn.org>
MIME-Version: 1.0
Sender: owner-opendos AT mail DOT tacoma DOT net

On Mon, 3 Feb 1997, Andrew McLachlan wrote:
> On Sun, 02 Feb 1997 "Colin W. Glenn" <cwg01 AT gnofn DOT org> wrote:
> > On Sun, 2 Feb 1997 jdashiel AT eagle1 DOT eaglenet DOT com wrote:
> > As far as I can remember, command.com has to be a com file because it's
> > resident portion contains EXEC, and that has the exe relocator.
> Hmmm.  I don't know anything about that, but would mention that 
> 4DOS.COM is an .exe file with a .com extension.

Hmmm, did a little reading up and found something interesting, it seems I
was remembering some oddities about the DOS's, IBM set up their
command.com to contain EXEC because of space problems with their SYS
files.  Which means that certain versions of IBM DOS _will not_ be able to
handle 4dos.com because the relocator isn't loaded with the SYS.  As far
as 4dos.com being an exe, that _doesn't_ matter, the loader looks for the
'MZ' signature, if found, it's a EXE, no? com.  Try this:

DIR *.EXE >TEMP.BAT
(then edit temp bat so it contains lines like this:
rename thisfile.com thisfile.exe 	
(save this BAT, you'll need it later.)
rename *.EXE *.COM
(if this fails, you'll have to use a BAT file to do the renaming)

Now all the programs will still run, from withing shell programs, the
command line, and I think even windows will run them, (never tried that),
because like I'll say, the extension only plays a role in FINDING the
file, not in determining what type of executable it is.

After you've finished playing, run the BAT to restore the extensions.

<! PrePared HTML!  Just export as a HTML file and Click!>
The Light<a href="http://www.thelight.org/">.</a>
A Christian Web Site! 

- Raw text -


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