command from DOS read and accepted by GUI
Posted on 2004-11-20
Can I have a Java GUI application that receives DOS commands to initiate an action as it does with ActionEvent, ActionListener, etc. For an example let’s say my application has been started from within a .bat file by an external application, and a GUI is launched that displays some information. Then let’s say the external application sends a string of text to get my GUI application to initiate some other action. 1) Is this possible? 2) What would be the best approach to capture this text from the external application?
Thanks in advance.