Thanks for the info.
What directory does this run in? I have a DOS app that has an .ini file that
goes with it so if I specify the directory to run the exe in, it doesn't
find the ini file. So what I really need to do is specify what directory to
run this in.
Here's an example I guess of what I need to do:
cd \program files\splat
runme.exe fred.input fred.output
Is there anyway I can do that?
TIA - J.
"Jakob Christensen" <jc*@REMOVEpension.dk> wrote in message
news:46**********************************@microsof t.com...
Use the System.Diagnostics.Process class:
Process p = Process.Start(@"dosapp.exe");
p.WaitForExit();
HTH, Jakob.
--
http://www.dotninjas.dk
http://www.powerbytes.dk
"UJ" wrote:
I've got a DOS app I need to run (that requires no user input) from a
.Net
and I need to wait for it to complete. How do I that?
TIA - J.