www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/20/12:24:17

From: kalzus AT b48-174 DOT datanet DOT nyu DOT edu (Lance Kalzus)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to get rid of autoexec.bat
Date: 20 Feb 1997 14:00:22 GMT
Organization: Pyros
Lines: 36
Message-ID: <5ehldm$opi$1@news.nyu.edu>
References: <5efatv$juq AT chaos DOT kulnet DOT kuleuven DOT ac DOT be>
NNTP-Posting-Host: b48-174.datanet.nyu.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

koen (koen DOT janssens1 AT student DOT kuleuven DOT ac DOT be) 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). 
: 
: Is there a way to let the computer jump to another bat file?

...Not directly, but why not do this?

---AUTOEXEC.BAT---
set VAR1=CONT1
set VAR2=CONT2

goto %CONFIG% <-- that has the menu code for the startup option selected


:(MENUCODE1)  <-- these are batchfile labels
REM DO MENU ITEM #1 STUFF
goto fin

:(MENUCODE2)
REM DO MENU ITEM #2 STUFF
goto fin

:fin
cd c:\
c:
---AUTOEXEC.BAT---end---

-- 
				Just another lamer in the soup,
				Lance Kalzus <kalzus AT b48-174 DOT datanet DOT nyu DOT edu>
				(E0DBFF1A76CDBA56 2359331145127FC7
				 1536/B2EC55A5 1996/10/12)
				

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019