• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i control the process i create?

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 {
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
how can i avoid all these happen???
anyone can help me ???
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!