DigiTechin
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(assuming you mean windows)
ASKER
Where do I run this Runtime.getRuntime()exec(< programme commands and parameters>);
Remember this program is supposed to be invoked from a web page...
Remember this program is supposed to be invoked from a web page...
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.
What do you mean:
> Remember this program is supposed to be invoked from a web page...
?
> Remember this program is supposed to be invoked from a web page...
?
Following my suggestion means that any url matching the pattern:
whatever:url
will launch you application, passing it url as a parameter (on Windows)
whatever:url
will launch you application, passing it url as a parameter (on Windows)
> 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.
> > 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.
Thats has got to do with the mime types on the server. Better change them.
> 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...
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...
> on the client, surely ;-)
Yes on the client :)
Yes on the client :)
ASKER
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...
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...
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
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
to invoke the programme for execution.