Search code examples
c#processsystem.diagnosticsc#-6.0

Launching .exe file without pathing location c#


How I can launch exe file with c# code? So I have this :

Process.Start( @"C:\Program Files (x86)\Photoshop\Photoshop.exe");

But the path can be different in other machines. So is there any ideas to run .exe with different way?

Thanks!


Solution

  • I found a solution.

    Activator.CreateInstance(Type.GetTypeFromProgID("Photoshop.Application"));