Launching an application and waiting for exit.....

G

Guest

I'm trying to write a program which opens data from a remote target, saves a
temp copy locally, allows the user to edit, then upload back to source.

I use Diagnostics.Process.Start to create my process, then call WaitForExit
on teh returned object.

This is fine for notepad, but not for Word etc, which open multiple docs in
the same process.

How, using .NET 2, can I check if a process started by my app which works
similar to Word (One Process multiple files) still has a specific file open,
even if the file does not get locked, or held open?

Chris
 
P

Peter Duniho

[...]
How, using .NET 2, can I check if a process started by my app which works
similar to Word (One Process multiple files) still has a specific file
open,
even if the file does not get locked, or held open?

I forget the details, but in OLE there's a convention that allows you to
call the document server for editing a document and when the document is
closed, you get notification back that that happened. I'm sorry I don't
have the specifics off the top of my head, but assuming that the .NET
inter-application support works in a similar way, it should have the same
kind of mechanism somewhere.

Sometimes knowing that something can be done is half the battle. I'm
pretty sure what you want can be done. :)

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top