I have the following lines of code:
System.Diagnost ics.Process process = new System.Diagnost ics.Process();
process.StartIn fo.FileName = "intupld.ex e";
process.StartIn fo.Arguments = hupFile;
process.StartIn fo.WorkingDirec tory = hencePath;
The problem I am running into is, if I run the code as listed above, the
Argument does not seem to be passed to the *.exe file, as a command window is
opened and sits waiting for "input."
However: if I run the code as follows (this is how it was ran under old VB6):
System.Diagnost ics.Process process = new System.Diagnost ics.Process();
process.StartIn fo.FileName = "intupld.ex e " + hupFile;
process.StartIn fo.WorkingDirec tory = hencePath;
I get an error of the file not being found.
How would I be able to call this *.exe file and pass in the file argument?
Thanks
Andy
System.Diagnost ics.Process process = new System.Diagnost ics.Process();
process.StartIn fo.FileName = "intupld.ex e";
process.StartIn fo.Arguments = hupFile;
process.StartIn fo.WorkingDirec tory = hencePath;
The problem I am running into is, if I run the code as listed above, the
Argument does not seem to be passed to the *.exe file, as a command window is
opened and sits waiting for "input."
However: if I run the code as follows (this is how it was ran under old VB6):
System.Diagnost ics.Process process = new System.Diagnost ics.Process();
process.StartIn fo.FileName = "intupld.ex e " + hupFile;
process.StartIn fo.WorkingDirec tory = hencePath;
I get an error of the file not being found.
How would I be able to call this *.exe file and pass in the file argument?
Thanks
Andy
Comment