RE: dos command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Frank,

Thanks for your answer.

If I understand your suggestion is to create at runtine the batch file
as I don't know what the value if I will need to set for val.

Isn't a way in dos to run 2 commands or more in same line as in Unix for
example ?

Thanks
Idan

-----Original Message-----
From: Frank Cox [mailto:theatre@xxxxxxxxxxx] 
Sent: Sunday, October 05, 2008 9:31 PM
To: Idan Shai (ishai)
Cc: linux-msdos@xxxxxxxxxxxxxxx
Subject: Re: dos command

On Sun, 05 Oct 2008 21:24:06 +0200
"Idan Shai (ishai)" <ishai@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux