• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i control the process i create?  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a applet ,i create a Process to control the word,like these:
p = Runtime.getRuntime().exec("winWord "+fileName);
int processExit=0;
try {
processExit=p.waitFor();
if(processExit==0) {
...code to do
}
}
if the user close the word which i create ,i can catch the Exit event,so i can do somthing else.
but if the user has opened a word, then when the new word create ,the Exit event arise before the user close the new word i
create.
how can i avoid all these happen???
anyone can help me ???
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!