[Mono-dev] WaitForExit and File Associations

Gavin Landon Gavin.Landon at ignitetech.com
Wed Dec 12 17:55:13 EST 2007


http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_p
latform_.3F 


__________________________
Gavin Landon
Ignite Technologies 
972.348.6469 - Office 


-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Gavin
Landon
Sent: Wednesday, December 12, 2007 3:59 PM
To: andreas.faerber at web.de
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] WaitForExit and File Associations

 
Thanks...  

Few questions:
Shouldn't mono call it the way it's supposed to be called based on OS?
How can I tell in Mono what OS I'm running under so I can make a
different call?

-----Original Message-----
From: andreas.faerber at web.de [mailto:andreas.faerber at web.de]
Sent: Wednesday, December 12, 2007 9:44 AM
To: Gavin Landon
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] WaitForExit and File Associations



Am 12.12.2007 um 15:39 schrieb Gavin Landon:

> I'll assume since no one responded that no one uses this API so I'll 
> submit it as a bug.
>
>
> From: mono-devel-list-bounces at lists.ximian.com 
> [mailto:mono-devel-list-bounces at lists.ximian.com
> ] On Behalf Of Gavin Landon
> Sent: Tuesday, December 11, 2007 9:48 AM
> To: mono-devel-list at lists.ximian.com
> Subject: [Mono-dev] WaitForExit and File Associations
>
> Before I report as a bug, I thought I would ask and see if anyone else

> has seen this.
>
> I'm using the following code and I've found out a few things..
>
> System.Diagnostics.Process proc = new System.Diagnostics.Process(); 
> proc.StartInfo.FileName = sFile; proc.StartInfo.Arguments = sParm; 
> proc.StartInfo.UseShellExecute = true; 
> proc.StartInfo.RedirectStandardOutput = false; proc.Start(); 
> proc.WaitForExit();
>

> 2. On OSX file association for instances passing "/users/gavin/ 
> Desktop/notepad.txt" as the sFile never does anything
>
On OSX you can use the open command to open a file in the associated
application.

Andreas
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list