Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!jade!violet.berkeley.edu!forags From: forags@violet.berkeley.edu Newsgroups: comp.sys.ibm.pc Subject: Re: Setting BAT file parms from program Message-ID: <3780@jade.BERKELEY.EDU> Date: Fri, 29-May-87 17:13:45 EDT Article-I.D.: jade.3780 Posted: Fri May 29 17:13:45 1987 Date-Received: Sun, 31-May-87 16:41:39 EDT References: <5292@ut-ngp.UUCP> Sender: usenet@jade.BERKELEY.EDU Reply-To: forags@violet.berkeley.edu (Al Stangenberger) Organization: University of California, Berkeley Lines: 16 Keywords: BAT parm program In article <5292@ut-ngp.UUCP> pyle@ut-ngp.UUCP writes: > >I would like to have a program that is executed from a DOS BAT file be able >to set or modify the BAT file parameter values. In this manner, the program >could prompt for some data and subsequent commands executed in the BAT file >would be able to use the user's repspone (e.g., a path name). My question: >can this be done, and if so, how? > The INFO-IBMPC library has a couple of routines (BATQUES.ASM and INPUT.C and associated document files BATQUES.DOC and INPUT.DOC) which allow some interaction with a batch file. INPUT.C puts the user's response into an environment variable which can be used by the .bat file. Al Stangenberger Forestry U.C. Berkeley