Home > Archive > C# > March 2004 > starting a program from C#
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
starting a program from C#
|
|
| slider 2004-03-28, 10:28 pm |
| I have a filewatcher window service that runs a query. When the query is
done and 2 reports are created, i need to xcom the files to a mainframe. I
am trying to run the process from c# using the following method:
System.Diagnostics.Process.Start(@"D:\xcomnt\xcomtcp.exe -c -f",
@"D:\mainframe.cnf"); It gives me an eror saying that it can't find the
file.
Thanks for the Help
Dave
| |
|
| Try passing command line arg using this syntax:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = true;
proc.StartInfo.FileName= <exe name>
proc.StartInfo.Arguments = <all command line args>
proc.Start();
"slider" <d.cassidy@comcast.net> wrote in message news:<QeiXb.32184$uV3.57886@attbi_s51>...
> I have a filewatcher window service that runs a query. When the query is
> done and 2 reports are created, i need to xcom the files to a mainframe. I
> am trying to run the process from c# using the following method:
> System.Diagnostics.Process.Start(@"D:\xcomnt\xcomtcp.exe -c -f",
> @"D:\mainframe.cnf"); It gives me an eror saying that it can't find the
> file.
> Thanks for the Help
>
> Dave
|
|
|
|
|