The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

process

Posted by sri on April 02, 2001 at 12:40 AM

> When a spawn a process to execute an *.exe file,i would like to obtain the process Id of the corresponding process.

> I would appreciate your help.


hi

u can call exec() method of Runtime class, to the method u
should pass and executable or any file and the method
returns a reference to the spawning process which u can use as
process id for manage the sub process....

srini



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us