The Artima Developer Community
Sponsored Link

Java Answers Forum
question about java arguments

1 reply on 1 page. Most recent reply: Jan 15, 2003 2:18 PM by Kishori Sharan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Choopong

Posts: 3
Nickname: sabotend
Registered: Jan, 2003

question about java arguments Posted: Jan 15, 2003 11:17 AM
Reply to this message Reply
Advertisement
i wonders from the following command line
"java jnetmon.main %1 %2 %3 %4 %5 %6 %7 %8 %9"
what does %1 %2 %3 ... mean ? please help. Thank you.


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: question about java arguments Posted: Jan 15, 2003 2:18 PM
Reply to this message Reply
I think you have come across this content in a .bat file. Suppose the file name is abc.bat, which has this content then on DOS prompt you will invoke the bat file as:

c:>abc.bat arg1 arg2 arg3

Here whatever you supply for arg1 is substituted for %1, arg2 for %2 etc. Therefore the above command is translated to
c:>java jnetmon.main arg1 arg2 arg3

For futher details please read about DOS bat file creation and parameter substitution in a bat file using %1, %2 etc.
Thanks
Kishori

Flat View: This topic has 1 reply on 1 page
Topic: Socket programming with Threads Previous Topic   Next Topic Topic: help with getting the first 10 values from a string

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use