Bruno

Bruno

  • NA
  • 3
  • 0

Running an exe in with commandline parameters

Apr 2 2010 8:21 AM
I have exe which i want to execute from c#, when I try to run the file from c# it does nothing.
When i run the file from DOS it works.
What do i wrong?
My code is:

                foreach (string srcFile in srcFileDialog.FileNames)
                {                
                    string exec = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\OTTO.EXE";
                    string param = srcFile + " -cA";
                    System.Diagnostics.Process.Start(exec, param);
                }

In annex the exe file.

Can somebody help me?



Answers (3)