How to display the batch file result in to custom console [message #210997] |
Wed, 16 May 2007 13:51 |
Eclipse User |
|
|
|
Originally posted by: hanuonline.gmail.com
Hi,
1 MessageConsole myConsole = findConsole("hello");
2
ConsolePlugin.getDefault().getConsoleManager().showConsoleVi ew(myConsole);
3 MessageConsoleStream out = myConsole.newMessageStream();
4 out.println("Hello from Generic console sample action");
5 Process p1 = Runtime.getRuntime().exec("cmd /c start "+filepath);
Here the result of line 4 displaying in myConsole.
When the line 5 is executed, it opens a command prompt and executing the
file.
But I want run the file and display the result in myConsole.
How to display the batch file output to myConsole.
For example when executing normal java file, it displays the output in the
console. (System.out.println("Hello World"))
|
|
|
Powered by
FUDForum. Page generated in 0.06303 seconds