From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Cox Subject: Re: dos command Date: Sun, 05 Oct 2008 13:30:48 -0600 Message-ID: <20081005133048.e509e0e6.theatre@sasktel.net> References: <19824395.post@talk.nabble.com> <20081005123619.73dba57d.theatre@sasktel.net> <65CF36FAA9055F46A887AA34ACEEEF0606B2E61D@xmb-ams-337.emea.cisco.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <65CF36FAA9055F46A887AA34ACEEEF0606B2E61D@xmb-ams-337.emea.cisco.com> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: "Idan Shai (ishai)" Cc: linux-msdos@vger.kernel.org On Sun, 05 Oct 2008 21:24:06 +0200 "Idan Shai (ishai)" wrote: > I have java program that I want to execute batch from it. > I want to set environment variable before I run the batch file. > For example the 2 commands I want to run are: > 1. set val=5 > 2. a.bat 1) Make the first line of a.bat read "set val=5" (without the quotes) or 2) Make a second batch file that calls a.bat, as in this example: set val=5 a Save that as b.bat and run b.bat when you want to run the program. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com