mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
Is there a way to run a cmd window with the following command:

java MyJavaFile

and then read the contents of the window and echo them?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
running the command is easily done.. just use the /run command

However, getting the information from the window can be more difficult.

You might try redirecting the output to a file, then read from the file.

To redirect the output to a file use
Code:
/run java MyJavaFile > file.txt


Above code is an example only.


Link Copied to Clipboard