Skip to content

Run *.exe from command prompt in c#

lavinia mehedintu

Asked May 23, 2007, 2:43 AM EDT1 answer
Share
LinkedInX
Hello I have an application which need to run command prompt  in c# for creating me an executabil "prog.txt",

I've tried to use this line in c#........

System.Diagnostics.Process.Start("cmd", @"glpsol -m tsp.mod -o prog.txt");


but it doesn't create me de executable "prog.txt"

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0

    Hello I have an application which need to run command prompt  in c# for creating me an executabil "prog.txt",

    I've tried to use this line in c#........

    > System.Diagnostics.Process.Start("cmd", @"glpsol -m tsp.mod -o prog.txt");


    > but it doesn't create me de executable "prog.txt"

    Try

    System.Diagnostics.Process.Start("glpsol.exe",  "-m tsp.mod -o prog.txt");

    0