COMSPEC.DOC ·
DOC ·
1.3 KB ·
1984-08-27 ·
from IBM-PC-User-Group-Software-Library_Disk-44_Feb-1980
[To carry out these mods, you will need some experience in using DOS 2.0
and in using DEBUG to make changes to COMSPEC.COM . . .]
Page 10-23 of the DOS 2.0 manual clearly states the the COMSPEC parameter is
used to locate the command processor (COMMAND.COM) when it needs to be reloaded.
Although the SET command may be used to respecify the path, DOS does not seem to
recognize it.
.
.This program if included in the AUTOEXEC.BAT file at boot time along with a SET
command will cause DOS to reload COMMAND.COM from wherever you wish. My
AUTOEXEC.BAT file looks like this:
.
. ECHO ** AUTOEXEC.BAT **
. COMSPEC
. IF ERRORLEVEL 0 GOTO CSGOOD
. ECHO COMSPEC ERROR
. GOTO CSBAD
. :CSGOOD
. SET COMSPEC=C:\COMMAND.COM
. :CSBAD
.
.Just remember to copy COMMAND.COM to the electronic disk in your AUTOEXEC.BAT
file.
.
.If you do not have access to MASM then the file COMSPEC.COM may be modified
using DEBUG to include your path name.
.
. debug comspec.com
. e112 "C:\COMMAND.COM",0 (your path name here)
. e160 f (path length in characters including terminating zero)
. w
. q
2 "C:\COMMAND.COM",0 (your path name here)
. e160 f (path length in characters including terminating zero)
.