Calling an executable other than Process in c#

Asked

Viewed 1,976 times

4

Is there any 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 finish a process of an application that is not native to Windows, I cannot 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#

  • You can explain better what you intend to do?

1 answer

3


You can run an application through the executable path:

Process.Start("c:\\caminho do executável.exe");
  • I need to call a WPF application without using Process.Start within an application console. That way it doesn’t work either

  • What happens when you call the WPF application executable using the Process.Start? Gives exception?

  • It got a little slow with Process.Start but it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.