G
Guest
I have the following lines of code:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "intupld.exe";
process.StartInfo.Arguments = hupFile;
process.StartInfo.WorkingDirectory = 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.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "intupld.exe " + hupFile;
process.StartInfo.WorkingDirectory = 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.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "intupld.exe";
process.StartInfo.Arguments = hupFile;
process.StartInfo.WorkingDirectory = 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.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "intupld.exe " + hupFile;
process.StartInfo.WorkingDirectory = 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