Skip to main content



      Home
Home » Newcomers » Newcomers » How to display the batch file result in to custom console
How to display the batch file result in to custom console [message #210997] Wed, 16 May 2007 09:51
Eclipse UserFriend
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"))
Previous Topic:Can't Run Eclipse
Next Topic:File chooser wizard in eclipse
Goto Forum:
  


Current Time: Sun May 04 03:55:58 EDT 2025

Powered by FUDForum. Page generated in 0.07569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top