Re: Batch file params



On Sat, 27 Aug 2005 13:51:40 +0100, Thomas Hawtin wrote:

> java -Dnumber=1 -jar MyApp
>
> String number = System.getProperty("number");

Good point Thomas. There are better ways to do what
the OP requires. And properties (for one) more closely
fits the requirements in being able to tie values to names.

I always consider it rather fragile to depend on a
certain parameter order using the 'args' (as I
demonstrated initially).

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"..When after all, it was you and me."
The Rolling Stones 'Sympathy For The Devil'
.



Relevant Pages