Taking registered links

I have developed a program that runs as a OS service and to be executed during startup.
The real problem is that this program is to catch specific links from a web page, such like an eD2K link. Upon clicking on such a link, the the program should be invoked and a process has to be performed by the parameter this link contains.
Some applications, as we all know, are to be started upon clicking on mailto, ftp, http links.
How am I to register such a link so that upon a click this program is invoked?
DigiTechinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
You can always use the Runtime.getRuntime().exec(<programme commands and parameters>);

to invoke the programme for execution.
0
TimYatesCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimYatesCommented:
(assuming you mean windows)
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

DigiTechinAuthor Commented:
Where do I run this Runtime.getRuntime()exec(<programme commands and parameters>);
Remember this program is supposed to be invoked from a web page...
0
girionisCommented:
You cannot run in on the client then unless you use an applet, but then you wouldn't want to display the HTML in an applet. I think you better follow Tim's suggestion.
0
TimYatesCommented:
What do you mean:

> Remember this program is supposed to be invoked from a web page...

?
0
TimYatesCommented:
Following my suggestion means that any url matching the pattern:

  whatever:url

will launch you application, passing it url as a parameter (on Windows)
0
girionisCommented:
>  What do you mean:

> > Remember this program is supposed to be invoked from a web page...

He probably means that when you click on a link that points to that kind of file to run the eDonkey programme, same with PDf I guess, when you click on a pdf link Acrobat opes the file automatically.
0
girionisCommented:
Thats has got to do with the mime types on the server. Better change them.
0
TimYatesCommented:
>  Thats has got to do with the mime types on the server

on the client, surely ;-)

yeah...  it's a filetype issue (on Windows) for files that end in .whetever that's in the registry somewhere...best thing to do is probably set it up using Windows Explorer until it works, then find it in the registry and see what it's done :-)

if you want like mailto:  or ftp:  then that link I gave gives the registry settings...

For machines other than windows, I wouldn't like to guess how and where these linkages are stored...
0
girionisCommented:
> on the client, surely ;-)

Yes on the client :)
0
DigiTechinAuthor Commented:
Ok here is the deal...
I have managed to edit the registry properly and now it works, thus I thank you for all your help...
There was a typo error so I have fixed it and now it works mint...:)
As I have chosen Tim's solution the points go to his account.
Thanks a lot guys...
0
TimYatesCommented:
Yay!

Glad it all works :-)

Good luck with it!

(there are java registry editors out there such as http://www.bayequities.com/tech/Products/jreg_key.shtml if you want to have your application install this registry patch when it is run for the first time)

Tim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.