I know the file name or program but do not know the path. The path also may vary from pc to pc. How do I find the file and open it or start the program without knowing the path?
Try
System.Diagnostics.Process.Start("SomeProgram.exe")
Catch ex As Exception
MsgBox(ex.Message)
Exit Sub
End Try
This works great for any program that has been installed via a install program. Does not work for exes that have only been copied to the pc. You then have to give the path to the exe.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.