Article View: comp.os.msdos.programmer
Article #5038Re: Disabling an Internal DOS Command
From: Steve Chanin
Date: Tue, 05 Mar 1991 17:44
Date: Tue, 05 Mar 1991 17:44
17 lines
1408 bytes
1408 bytes
To get rid of the dos cd command, run a binary editor on command.com. Search for the string CD (in uppercase). You should find what looks like a table of all the dos builtin commands. Move to where CD is and change it to cd (lowercase). Save command.com. Reboot. Since DOS upcases commands before trying to match them against this table, changing CD to cd will prevent DOS matching the command and it will then look for cd.exe in your path. For the last few weeks, I've been running a version of 4.01 to which I applied this patch and haven't had any problems. Steve -- =============================================================================== DOMAIN: sbchanin@oracle.com Oracle Corporation USMAIL: Steven Chanin, 400 Oracle Parkway, Redwood Shores, CA 94065 PHONE : (415) 506-2864
Technical Details
Message-ID:
<SCHANIN.91Mar5094420@mailseq.oracle.com>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!spool.mu.edu!uunet!fernwood!oracle!newsReferences:
<1991Mar4.151301.12925@cbnewsk.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!spool.mu.edu!uunet!fernwood!oracle!news From: schanin@oracle.com (Steve Chanin) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: <SCHANIN.91Mar5094420@mailseq.oracle.com> Date: 5 Mar 91 17:44:37 GMT References: <1991Mar4.151301.12925@cbnewsk.att.com> Sender: news@oracle.com Reply-To: schanin@oracle.com Distribution: usa Organization: Oracle Corp., Belmont CA Lines: 17 In-reply-to: konopka@cbnewsk.att.com's message of 4 Mar 91 15:13:01 GMT