Re: Batch file params
- From: Andrew Thompson <SeeMySites@xxxxxxxxxxx>
- Date: Sat, 27 Aug 2005 13:12:06 GMT
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'
.
- References:
- Batch file params
- From: iblamemicrosoft
- Re: Batch file params
- From: Andrew Thompson
- Re: Batch file params
- From: Thomas Hawtin
- Batch file params
- Prev by Date: Re: Batch file params
- Next by Date: Newbie Ques on JCreator
- Previous by thread: Re: Batch file params
- Next by thread: Re: Batch file params
- Index(es):
Relevant Pages
|