Mail Archives: djgpp/1997/02/20/15:35:46
Bill Currie wrote:
>
> koen wrote:
> >
> > I'm using the menu command in config.sys, so I'm able to start the computer in
> > two different modes(much memory or more speed). But there's only one
> > autoexec.bat so after the config.sys, the computer uses always the same Autoexec file
> > (whatever choice I made in the menu).
>
> in autoexec.bat:
>
> @call %config%
There's an easier way to do it, and it lets you keep all the necessary
commands in one batch file. Simply put the following command near the
beginning of your AUTOEXEC.BAT:
goto %CONFIG%
Then simply create a label for each possible value of the CONFIG
variable. In practice, it can get much more complex than that - you
might be interested in seeing my config.sys and autoexec.bat, in which I
believe I have the supreme multi-config setup. I even have a section
that loads up a different 'win.ini' file depending on which
configuration I chose. :)
--
John M. Aldrich <fighteer AT cs DOT com>
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -