When I'm running program from command line I enter:
program.exe -f batch.bat
I want to do equivalent call from my program. I tried this code:
Process Proc = new Process();
Proc.StartInfo.FileName = "program.exe";
Proc.StartInfo.Arguments = "-f batch.bat";
Proc.Start();
but this code only runs program "program.exe" without passing him the "-f batch.bat" argument. So can someone please tell me how to pass the "-f batch.bat" argument?
Tnx
How to run process with arguments
Started by 051r151, Jan 10 2010 01:12 PM
1 reply to this topic


Sign In
Create Account

Back to top









