Call a non-executable by Process in C #

4

Is there a way to call an executable other than by process?

I need something that does not use the code below to call an executable because when I end a process from an application that is not native to Windows, I can not call it again with the command:

foreach (Process pr in Process.GetProcessesByName(nomeExecutavel))
        {
            if (!pr.HasExited) 
    pr.Start();
        }

Note: It is an Application console in C #

    
asked by anonymous 08.04.2014 / 20:08

1 answer

3

You can run an application through the executable path:

Process.Start("c:\caminho do executável.exe");
    
08.04.2014 / 20:11