I have an app that calls an eternal EXE using process.start. My issue is I
have a couple command line parameters that need to be put in, so that it
would read:
Process p = new Process();
p.EnableRaisingEvents = false;
p.StartInfo.WorkingDirectory = "C:\\AutoPM\\AutoD\\"; //**TESTING
p.StartInfo.CreateNoWindow = false;
p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
ProcessStartInfo startInfo = new ProcessStartInfo("AutoDim.exe", "
delay=60");
System.Diagnostics.Process.Start(startInfo);
Where the delay=60 is the command line param values.
Anyone have any ideas or assistance? Thanks
Ignacio Machin ( .NET/ C# MVP ) - 31 Aug 2006 15:58 GMT
Hi,
What is the problem?
IT should work fine.

Signature
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
>I have an app that calls an eternal EXE using process.start. My issue is I
> have a couple command line parameters that need to be put in, so that it
[quoted text clipped - 13 lines]
>
> Anyone have any ideas or assistance? Thanks
Mel - 31 Aug 2006 16:12 GMT
it should work, but you can try adding
p.StartInfo.Arguments = "delay=60";
>I have an app that calls an eternal EXE using process.start. My issue is I
> have a couple command line parameters that need to be put in, so that it
[quoted text clipped - 13 lines]
>
> Anyone have any ideas or assistance? Thanks
Ben Voigt - 31 Aug 2006 18:52 GMT
>I have an app that calls an eternal EXE using process.start. My issue is I
> have a couple command line parameters that need to be put in, so that it
[quoted text clipped - 8 lines]
> ProcessStartInfo startInfo = new ProcessStartInfo("AutoDim.exe", "
> delay=60");
now you have two ProcessStartInfo objects/structures: p.StartInfo and
startInfo. Maybe you meant to set startInfo.WorkingDirectory, etc?
> System.Diagnostics.Process.Start(startInfo);
>
> Where the delay=60 is the command line param values.
>
> Anyone have any ideas or assistance? Thanks