By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

Starting another app from my VB app

P: n/a
KC
I want to start an application from my VB program. Problem is, I don't want
to hard code the path because this app might be in a different location on
the users machine, but if it is there they can start it by going to "Start |
Run..." and entering just the executable name.

How can I do that from my code? I guess I'm asking how to start a program
that's been registered on Windows.

--
Ken
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
System.Diagnostics.Process.Start("Notepad") will start notepad
System.Diagnostics.Process.Start("Excel") will start excel etc etc etc

"KC" wrote:
I want to start an application from my VB program. Problem is, I don't want
to hard code the path because this app might be in a different location on
the users machine, but if it is there they can start it by going to "Start |
Run..." and entering just the executable name.

How can I do that from my code? I guess I'm asking how to start a program
that's been registered on Windows.

--
Ken

Nov 21 '05 #2

P: n/a
* "KC" <yo*@dontneed.this> scripsit:
I want to start an application from my VB program. Problem is, I don't want
to hard code the path because this app might be in a different location on
the users machine, but if it is there they can start it by going to "Start |
Run..." and entering just the executable name.


Take a look at 'System.Diagnostics.Process.Start' and 'Shell'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.