[net.micro.pc] Resident COMMAND.COM

joel@Rochester.ARPA@sri-unix.UUCP (10/09/83)

From:  Joel Seiferas  <joel@Rochester.ARPA>

Below is a typical way to avoid repeatedly having to reinsert your
COMMAND.COM diskette in drive A: for restoration.  This method
requires PC-DOS 2.0 and a driver for disk C: in RAM.  It incidentally
uses a simple program to put a volume label on C: and a simple program
to write-protect COMMAND.COM so that it will STAY on C:.

:Excerpts from AUTOEXEC.BAT;
:   initially, FILE1 should exist, but FILE2 should not.
if exist file2 goto second
:first
rename file1 file2
label c: pseudodisk
mkdir c:\booted
copy command.com c:\booted >nul:
chmod -ra c:\booted\command.com
set comspec=C:\BOOTED\COMMAND.COM
command/p
:second
rename file2 file1

(The second time through the batch occurs when COMMAND.COM is
reinvoked.  For some reason, there is no second time through if the /P
switch is omitted.)

                               Joel Seiferas
                               University of Rochester