Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime process, can you test if the exe has completed?

Status
Not open for further replies.

Kruzer

Programmer
Jun 16, 2000
117
US
What method or way can I test for a exe finishing it's process?

Runtime rt = java.lang.Runtime.getRuntime();
rt.exec("\\test\\test.exe")

rt.???, check for the state of the test.exe, has it completed?

Something like -

if(rt.<need method>) // if true, open log.txt
{
FileInputStream in = new new FileInputStream(&quot;log.txt&quot;);
...
}






Dano
dan_kryzer@hotmail.com
What's your major malfunction
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top