?
Solved

Taking registered links

Posted on 2004-11-23
13
Medium Priority
?
251 Views
Last Modified: 2010-03-31
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?
0
Comment
Question by:DigiTechin
  • 6
  • 5
  • 2
13 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 12655350
You can always use the Runtime.getRuntime().exec(<programme commands and parameters>);

to invoke the programme for execution.
0
 
LVL 35

Accepted Solution

by:
TimYates earned 375 total points
ID: 12655361
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12655365
(assuming you mean windows)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:DigiTechin
ID: 12674567
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
 
LVL 35

Expert Comment

by:girionis
ID: 12674578
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
 
LVL 35

Expert Comment

by:TimYates
ID: 12674590
What do you mean:

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

?
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12674594
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
 
LVL 35

Expert Comment

by:girionis
ID: 12674616
>  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
 
LVL 35

Expert Comment

by:girionis
ID: 12674623
Thats has got to do with the mime types on the server. Better change them.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12674640
>  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
 
LVL 35

Expert Comment

by:girionis
ID: 12674659
> on the client, surely ;-)

Yes on the client :)
0
 

Author Comment

by:DigiTechin
ID: 12674800
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
 
LVL 35

Expert Comment

by:TimYates
ID: 12674854
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question