[Mono-devel-list] Call one Exe From another
Everaldo Canuto
everaldo_canuto at yahoo.com.br
Thu Jan 27 01:39:27 EST 2005
Hi,
FileName is a name of your file executable, and Arguments is a arguments
for command line, see this command line:
mono WindowText.exe par1 par2
"mono" - is FileName
"WindowText.exe par1 par2" is Arguments.
Try to do this:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="mono";
proc.StartInfo.Arguments="WindowTest.exe";
proc.Start();
proc.WaitForExit();
Best regards,
Everaldo.
Em Qui, 2005-01-27 às 16:51 +0530, Umashankar Ashwathnarayanan escreveu:
> Hi
> I am running one simple Program that call another exe
>
> Code :
>
> System.Diagnostics.Process proc = new System.Diagnostics.Process();
> proc.EnableRaisingEvents=false;
> proc.StartInfo.FileName="WindowTest";
> proc.StartInfo.Arguments="WindowTest.exe";
> proc.Start();
> proc.WaitForExit();
>
> This is call when i press the button.
> The WindowTest.exe is present in bin folder of the application,
> When i Press the button ,
> it call that Speficied file/path is not present
>
> Can any body help me.
>
> Kumar
>
> _______________________________________________
> 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