1
Answer

A solution to run other applications through c#

yamid

yamid

16y
2k
1

If you want to run an application that needs a data file to start you can use the following code:

 

using System;
using System.Diagnostics;

class MyProcessManipulator {
    static void Main(string[] args) {
        Process ieProc = Process.Start(@"exe or Bat file Path ", @"path for file to be read by exe/bat file");

        Console.Write("--> Hit a key to kill {0}...", ieProc.ProcessName);
        try {
            ieProc.Kill();
        catch { } // In case user already killed it...

    }
}


Answers (1)