I would like to open programmaticaly an application.
First i used System.Diagnostics.Process.Start(@"C:\Program Files (x86)\Program1.exe")
works fine, but the application always needs to be on the same path (not always true because different computer)
And a simple way to find it (with mouse & click, not programmaticaly though) is to use the windows file explorer, i enter the title of my application and i find it instantly.
I would like to code that.
I thought i could use the keyboard shortcut "Home + F" and simulate the word with SendKeys.Send("blabla"
) but the "Home key" doesn't seem to exist with c# (at least not here https://msdn.microsoft.com/fr-fr/library/ms127847(v=vs.110).aspx)
It's a little program for children i can't expect them to find manually the path (so forget the OpenFileDialog
..)
Maybe thats a very bad idea and there are another solution to find a program without knowing his path, i don't know have you got better idea?!