Well we can't do much in this case unless, there is a
way to acquire the handle of the process through Java
using JNI or something.Somebody with experience on
win32 sdk, please throw some light on this.

regards
Sanjay
--- Jason Carlamere <[EMAIL PROTECTED]> wrote:
> 
> This was not my problem but it spurred some
> curiousity
> What would I do if the process was already running
> before my app started
> 
> 
> 
>                                                     
>                                                     
>          
>                     Sanjay Garde                    
>                                                     
>          
>                     <algomatics          To:    
> JDJList <[EMAIL PROTECTED]>               
>              
>                     @yahoo.com>          cc:        
>                                                     
>          
>                                          Subject:   
>  [jdjlist] Re: Killing Win 2000 Process             
>          
>                     06/17/2002                      
>                                                     
>          
>                     02:36 PM                        
>                                                     
>          
>                     Please                          
>                                                     
>          
>                     respond to                      
>                                                     
>          
>                     JDJList                         
>                                                     
>          
>                                                     
>                                                     
>          
>                                                     
>                                                     
>          
> 
> 
> 
> 
> Runtime rt = Runtime.getRuntime();
> Process p =
> rt.exec("c:\\<whateverpath>\\winword.exe");
> p.waitFor();/*If you want the process to finish
> doing
> something b4 you kill it*/
> p.destroy();
> 
> regards
> Sanjay
> --- SAMINATHAN <[EMAIL PROTECTED]>
> wrote:
> > Does any one how to kill Win 2000/NT process from
> > the Java application.
> >
> > What do we need to call from Runtime.exec()?
> >
> >
> > Thanks and Regards
> > Saminathan.
> >
> >
> > To change your membership options, refer to:
> > http://www.sys-con.com/java/list.cfm
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
> 
> 
> 
> 
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to