delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/2003/10/11/14:16:02

X-Authentication-Warning: delorie.com: mail set sender to opendos-bounces using -f
Date: Sat, 11 Oct 2003 20:00:58 +0200
From: Matthias Paul <Matthias DOT Paul AT post DOT rwth-aachen DOT de>
Subject: Re: confirm before over-write
To: opendos AT delorie DOT com
Message-id: <000a01c39023$4d819960$c03dfea9@atlantis>
Organization: Aachen University of Technology (RWTH), Germany
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-Priority: 3
X-MSMail-priority: Normal
References: <1A3IOX-1hMTqK0 AT fwd03 DOT sul DOT t-online DOT com>
<03a801c38ebf$315d4640$c03dfea9 AT atlantis>
<092601c38ec3$0b3addc0$80fba8c0 AT dualdell>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h9BICOLs025472
Reply-To: opendos AT delorie DOT com

On 2003-10-10, Ben A L Jemmett wrote:

>> You cannot disable the internal COPY other than by replacing
>> COMMAND.COM (for example by 4DOS),
> 
> One trick with MS-DOS's COMMAND.COM is to take a hex editor to it and
> make one or more letters in the command name in the command table
> lowercase -- since COMMAND.COM uppercases what you type before
> matching internal commands this effectively disables it.  Not sure if
> this would work with DR-DOS's COMMAND.COM (I suppose it would) or if
> it's a good idea.

;-) Well, I don't think it's recommendable as long as other
solutions exist. I haven't tested it, but AFAIR, just changing
the case won't work for DR-DOS COMMAND.COM as both operands
will be up-cased during the comparison.
Still, changing one letter to an invalid character should work
as long as you take care of possibly merged (that is physically
overlapping) strings in the binary's command table.

Greetings,

 Matthias

--
<mailto:Matthias DOT Paul AT post DOT rwth-aachen DOT de>; <mailto:mpaul AT drdos DOT org>
http://www.uni-bonn.de/~uzs180/mpdokeng.html; http://mpaul.drdos.org

"Programs are poems for computers."


- Raw text -


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