mIRC Home    About    Download    Register    News    Help

Print Thread
P
pouncer
pouncer
P
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,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
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