Article View: comp.sys.ibm.pc.misc
Article #6734Re: Changeable Config.sys File
From: Brian R. Town
Date: Wed, 09 Jan 1991 23:23
Date: Wed, 09 Jan 1991 23:23
38 lines
1955 bytes
1955 bytes
>Does anyone know of a way to automatically change your
>config.sys file without having to edit it each time and
>reboot. I want to be able to use different entries in my
>config.sys file when running certain programs and TSRs, and
>be able to remove these entries to regain RAM when they
>are no longer needed.
>
>Thanks
>Markee Foster 9531fost@ucsbuxa.bitnet
> University of CA Santa Barbara
I have seen and heard of programs which allow you to reload different
configurations. I personaly do this simply by using a batch file. I have
a directory C:\REBOOT
with files in it named like this:
WINDOWS.CNF
WINDOWS.XEC
NORMAL.CNF
NORMAL.XEC
etc. etc
Next, I have a batch file which takes one parameter (which is the desired
configuration to load. I don't have it handy (as I am not at home), but
I think it looks like this:
COPY C:\REBOOT\%1.CNF C:\CONFIG.SYS
COPY C:\REBOOT\%1.XEC C:\AUTOEXEC.BAT
C:\UTILS\REBOOT.COM
All you have to type is the name of this batch file (mine is reboot.bat)
followed by the configuration name. Example: REBOOT WINDOWS
Note: The last line in the batch file runs a little program which performs
the reboot, so that I don't have to do the ctrl-alt-del.
I hope this helps.
Brian Town
Technical Details
Message-ID:
<6030001@hpspkla.spk.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpspkla!townReferences:
<8062@hub.ucsb.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpspkla!town From: town@hpspkla.spk.hp.com (Brian R. Town) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: Changeable Config.sys File Message-ID: <6030001@hpspkla.spk.hp.com> Date: 9 Jan 91 23:23:42 GMT References: <8062@hub.ucsb.edu> Organization: Hewlett Packard Company, Spokane, Wa. Lines: 38