954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Input from console/batch

Firstly I'm not sure where to put this post because it falls under java and vb.net, but since I'm guessing that the main part needs to be done with my java files, i put in here.
OK, so i am trying to create a console application to run my java files instead of a batch file, iv got that sorted out now i need to know if its possible for my java files to accept input from my console application and also if it does, how then do i send the input to my java files, thanks.

Webbsta
Light Poster
36 posts since Sep 2007
Reputation Points: 10
Solved Threads: 1
 

if you mean running at startup from the batch file you could invoke the java jar and supply it with a series of arguments?

Is this console application written in java? Is it a java console application? If so you can capture input from the user by doing System.in.get (I think its something like that) deffo in the System class namespace.

Acidburn
Posting Pro
511 posts since Dec 2004
Reputation Points: 12
Solved Threads: 5
 

No its written in VB.NET thats why I'm not sure whether its possible for my java files to accept input from it. If it was a java application it would be easy but its not :S

Webbsta
Light Poster
36 posts since Sep 2007
Reputation Points: 10
Solved Threads: 1
 

*Not a good idea* but you could get VB to write to a text file, and java to probe the text file periodically for the data?

Acidburn
Posting Pro
511 posts since Dec 2004
Reputation Points: 12
Solved Threads: 5
 
*Not a good idea* but you could get VB to write to a text file, and java to probe the text file periodically for the data?


ah thats a good idea, it would take a while for me to do that though.

Webbsta
Light Poster
36 posts since Sep 2007
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You