public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Frank Cox <theatre@sasktel.net>
To: "Idan Shai (ishai)" <ishai@cisco.com>
Cc: linux-msdos@vger.kernel.org
Subject: Re: dos command
Date: Sun, 05 Oct 2008 13:30:48 -0600	[thread overview]
Message-ID: <20081005133048.e509e0e6.theatre@sasktel.net> (raw)
In-Reply-To: <65CF36FAA9055F46A887AA34ACEEEF0606B2E61D@xmb-ams-337.emea.cisco.com>

On Sun, 05 Oct 2008 21:24:06 +0200
"Idan Shai (ishai)" <ishai@cisco.com> 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

  reply	other threads:[~2008-10-05 19:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-05 13:04 dos command idan72
2008-10-05 18:36 ` Frank Cox
2008-10-05 19:24   ` Idan Shai (ishai)
2008-10-05 19:30     ` Frank Cox [this message]
2008-10-05 19:46       ` Idan Shai (ishai)
  -- strict thread matches above, loose matches on Subject: below --
2008-10-06 10:44 Manfred Scherer
     [not found] ` <48EA9EA4.3030603@pobox.com>
2008-10-06 23:49   ` Manfred Scherer
2008-10-07  7:47     ` Frank Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081005133048.e509e0e6.theatre@sasktel.net \
    --to=theatre@sasktel.net \
    --cc=ishai@cisco.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox