Click here to Skip to main content
15,918,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with HasExited and WaitForExit() [modified] Pin
danielhasdibs8-Feb-08 9:37
danielhasdibs8-Feb-08 9:37 
GeneralRe: Problem with HasExited and WaitForExit() [modified] Pin
PIEBALDconsult8-Feb-08 9:48
mvePIEBALDconsult8-Feb-08 9:48 
GeneralRe: Problem with HasExited and WaitForExit() Pin
PIEBALDconsult8-Feb-08 10:02
mvePIEBALDconsult8-Feb-08 10:02 
GeneralRe: Problem with HasExited and WaitForExit() Pin
danielhasdibs8-Feb-08 10:09
danielhasdibs8-Feb-08 10:09 
GeneralRe: Problem with HasExited and WaitForExit() Pin
PIEBALDconsult8-Feb-08 10:48
mvePIEBALDconsult8-Feb-08 10:48 
GeneralRe: Problem with HasExited and WaitForExit() Pin
danielhasdibs8-Feb-08 10:14
danielhasdibs8-Feb-08 10:14 
GeneralRe: Problem with HasExited and WaitForExit() [modified] Pin
DaveyM698-Feb-08 11:18
professionalDaveyM698-Feb-08 11:18 
GeneralRe: Problem with HasExited and WaitForExit() Pin
Luc Pattyn8-Feb-08 11:30
sitebuilderLuc Pattyn8-Feb-08 11:30 
Hi,

this code works fine on WinXP:

Process proc=Process.Start(@"C:\test.doc");
log("procName="+proc.ProcessName);
proc.WaitForExit();
log("has exited");


provided no Word process is running yet (if there is, proc is null as per MSDN documentation).

PS: I do not use any Office Assistant, I have thrown it out long ago.
IIRC there is a small app that "helps" in launching Office components, if that were to intercept
the doc extension and then launch WinWord on its own, you would not get winword in procName;
you could fix that by explicitly starting winword, with the doc name as an argument tho).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Problem with HasExited and WaitForExit() [modified] Pin
DaveyM698-Feb-08 11:38
professionalDaveyM698-Feb-08 11:38 
GeneralRe: Problem with HasExited and WaitForExit() Pin
Luc Pattyn8-Feb-08 11:46
sitebuilderLuc Pattyn8-Feb-08 11:46 
GeneralRe: Problem with HasExited and WaitForExit() Pin
DaveyM698-Feb-08 11:54
professionalDaveyM698-Feb-08 11:54 
GeneralRe: Problem with HasExited and WaitForExit() Pin
Guffa8-Feb-08 12:41
Guffa8-Feb-08 12:41 
GeneralRe: Problem with HasExited and WaitForExit() Pin
engsrini8-Feb-08 13:20
engsrini8-Feb-08 13:20 
GeneralRe: Problem with HasExited and WaitForExit() Pin
mav.northwind8-Feb-08 20:07
mav.northwind8-Feb-08 20:07 
GeneralRe: Problem with HasExited and WaitForExit() Pin
PIEBALDconsult9-Feb-08 4:36
mvePIEBALDconsult9-Feb-08 4:36 
GeneralRe: Problem with HasExited and WaitForExit() Pin
danielhasdibs11-Feb-08 3:43
danielhasdibs11-Feb-08 3:43 
GeneralRe: Problem with HasExited and WaitForExit() Pin
Martin#11-Feb-08 23:50
Martin#11-Feb-08 23:50 
GeneralWindows Mobile GPS Application Issue Pin
Simerjots8-Feb-08 6:55
Simerjots8-Feb-08 6:55 
GeneralRe: Windows Mobile GPS Application Issue Pin
Gareth H8-Feb-08 9:00
Gareth H8-Feb-08 9:00 
GeneralRe: Windows Mobile GPS Application Issue Pin
Simerjots8-Feb-08 9:15
Simerjots8-Feb-08 9:15 
GeneralRe: Windows Mobile GPS Application Issue Pin
Simerjots8-Feb-08 14:20
Simerjots8-Feb-08 14:20 
General[Message Deleted] Pin
bruze8-Feb-08 5:42
bruze8-Feb-08 5:42 
GeneralRe: How to voice xml wave file srored in folder using c# aspx. Pin
Bert delaVega8-Feb-08 5:59
Bert delaVega8-Feb-08 5:59 
GeneralRe: [Message Deleted] Pin
engsrini8-Feb-08 13:38
engsrini8-Feb-08 13:38 
QuestionMobile app, auto-upgrade through web service Pin
JGentsch8-Feb-08 4:03
JGentsch8-Feb-08 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.