Monday, September 10, 2001 06:24 AM
How can start Command Window/ Shell window from a Java Application?
I want to open a file in vi editor through java. My vi editor is in the directory c:/editor/vi/vi.exe, and it is in path?
I tried the following code:
Runtime rt = System.getRuntime() ;
Process p = rt.exec("c:/editor/vi/vi.exe c:/temp/a.java") ;
It runs the vi editor in background when I checked the taskmanager, but doesn't show the editor at all.
Please help me in this matter?