Click here to get back home

launching a MS window that runs a .exe

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
launching a MS window that runs a .exe Andrew Neiderer 12-01-2006
Get Chitika Premium
Posted by Andrew Neiderer on December 1, 2006, 8:01 am
Please log in for more thread options



I think I am asking the right newsgroup. If not maybe someone could
tell me where to ask this "beginner" question.

I want to click on an image (.jpg) that launches a Microsoft window
(cmd.exe or command.com) which executes some .exe, e.g googleearth.exe.
I know this is simple
for most of you but I am just starting XHTML. I think it begins with

<html>
<body>
<p>
An image as a hyperlink:

<a "???">

<!-- start Google Earth by clicking image -->

<img border="0"
src="ge.jpg"
width="32" height="32"/>
</a>
</p>
</body>
</html>

Thank you.

- Andrew M. Neiderer
USARL

Posted by Philip Ronan on December 1, 2006, 10:25 am
Please log in for more thread options


neiderer@osprey.arl.army.mil (Andrew Neiderer ) wrote:

> I think I am asking the right newsgroup. If not maybe someone could
> tell me where to ask this "beginner" question.
>
> I want to click on an image (.jpg) that launches a Microsoft window
> (cmd.exe or command.com) which executes some .exe, e.g googleearth.exe.
> I know this is simple
> for most of you but I am just starting XHTML. I think it begins with

You can't start applications directly. What you need to do is provide
the user with a document that opens the application indirectly.

For example, to launch Google Earth, your link should point to a KML
file. If Google Earth is installed and the user's browser is set up
correctly, the KML file will be passed to Google Earth by the browser.

More info here: http://earth.google.com/kml/kml_tut.html

--
If you really must contact me by email, visit
http://rumkin.com/tools/compression/base64.php
and decode the following string of characters:
RW1haWw6IHBoaWxyb25hbkBibHVleW9uZGVyLmNvLnVr

Posted by Andy Dingley on December 1, 2006, 11:31 am
Please log in for more thread options



Andrew Neiderer wrote:

> I want to click on an image (.jpg) that launches a Microsoft window
> (cmd.exe or command.com) which executes some .exe, e.g googleearth.exe.

It's not possible. If it were possible, that would be a major bug and
would need to be fixed immediately in that browser.

Maybe your page just starts Google earth and is safe. How would you
distinguish this from my page, which is Evil and starts "format c:/"
instead? You see the problem, for why web browsers _can't_be_
permitted to escalate privileges from merely display documents to
starting programs.

There are ways around this. One way would be to embed an executable
ActiveX control on the page and allow that to run with serious
privileges. Then how do you prove the ActiveX control itself is safe
and trustworthy? There's still no widespread consensus on how to do
this reliably and flexibly which is why ActiveX hasn't ever taken the
web by storm.


Posted by Pete on December 6, 2006, 12:32 am
Please log in for more thread options


Andy Dingley wrote:

> There are ways around this. One way would be to embed an executable
> ActiveX control on the page and allow that to run with serious
> privileges.

I'd like to be able to run an executable via a link in a browser on our
intranet. Do you have any leads on where I might find an activex
control such as you mention?

Thanks, Peter

Posted by Andy Dingley on December 6, 2006, 4:55 am
Please log in for more thread options



Pete wrote:

> I'd like to be able to run an executable via a link in a browser on our
> intranet. Do you have any leads on where I might find an activex
> control such as you mention?

If you're after Google Earth, then the best way is probably a link to a
.kmz file. You can get users to set permissions on .kmz files to be
quite generous and to open GE automatically. There'll be a certain
amount of per-user config to do for each browser though.


Similar ThreadsPosted
Launching the correct app from URL March 11, 2005, 8:16 am
Launching a page to a name reference June 17, 2008, 1:16 pm
Embedding a sound file without launching player March 31, 2005, 5:20 am
How do I pass a list of arguments from a popup window to the parent window? July 6, 2006, 4:49 am
Results from child window submit into parent window, then child closes -- How To? February 4, 2005, 2:32 am
New Window November 11, 2004, 12:11 pm
Redirect to New Window September 13, 2004, 7:56 am
window size ??? November 10, 2004, 7:23 am
Resizing window June 27, 2005, 9:26 pm
scrollbar won't add to popup window July 22, 2004, 1:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap