You are here: Re: How to launch programs on my hard disk when URLs are clicked? « HTML « IT news, forums, messages
Re: How to launch programs on my hard disk when URLs are clicked?

Posted by Harlan Messinger on 06/07/07 18:55

dos-man 64 wrote:
> I'd like to create a webpage on my desktop with a bunch of hyperlinks.
> When I click on a hyperlink I'd like to have a program file on my
> computer launch. This isn't working.
>
> Here is my example web page. This does not work.
>
> <html>
> <body>
> <a href="file:///c:/program.exe arg1 arg2 arg3">Click here</a>
> </body
> </html>
>
>
> Does anybody know why this does not work, or how it can be made to
> work?

Think about what would happen if you went to a website with a link
reading, "Click here for more information" and you did, and all of a
sudden all sorts of programs started executing on your machine without
your permission? Including, maybe, one that would start reformatting
your hard drive?

In any event, a Web URL is not a DOS command line. There's no reason to
expect that format to work in a context where a URL is expected. This
shouldn't be any more surprising than the fact that if you type

http://www.google.com/

at a DOS command prompt, the result won't be the Google's home page
appears in a browser on your screen.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация