Launch Application From URL Like AIM

Submitted on: 1/16/2015 7:16:00 AM
By: whiteknight (from psc cd)  
Level: Intermediate
User Rating: By 6 Users
Compatibility: VB 5.0, VB 6.0
Views: 924
     This tells how to launch a program from a web browser by typping in a url like AIM (e.g. myapp:// would launch c:\program files\myapp\myapp.exe)

				In the Regestry HKEY_CLASSES_ROOT Create a Key named what you want the 'protocol' to be (e.g. myapp).
The '(Default)' value for that key is a description of the protocol.
A Subvalue needs to be created named 'URLProtocol' the value of this is "".
Then create a New SubKey to the protocol Key name it 'shell', no values need to be set here.
Now create a SubKey to 'shell', name this 'open', no values to set. Next create asubkey to 'open', name this 'command'.
The '(Default)' value for this key is the path to the application(e.g. c:\program files\myapp\myapp.exe %1).
The '%1 will return any command line params to your application, i.e. any thing after the 'myapp://' will be returned.

Thats it now you can open up your browser and type in the protocol (e.g. myapp://) and your application will launch.

I have tested that so It does work.

If you like this please post comments and vote. if anyone knows how to see if commands are passed please either post how in the comments or email me @

Download a working use of this in a Win32 Whois Client. It Looks like other windows utilities like ping, ipconfig ect. It does NOT use the winsock ocx it uses winsock API. Its FREE so Get it now. Download the WhoIs Client Here

Other 8 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.