Executing files from HTML pages


Q Is there any way that an executable file can be easily initiated from an HTML file? I use a simple HTML file as my home page for my browser. I find that it loads quicker than the all singing and dancing files of ISPs and others. What I would like to do is start up my Britannica CD from my browser. As Navigator is required for Britannica and IE is my preferred browser, I have to start Netscape before starting Britannica ù otherwise Britannica declares it cannot find Navigator. If I place a link to the Britannica executable on my home page it insists on copying it to my temp folder. Have you any suggestions? I use Word 97 to edit my home page.

As a temporary expedient I am using a DOS batch file to load the two programs sequentially from my Desktop.

- John Little

A It's a good idea to use a local HTML page as a Shortcut to all your Internet links. You can also use it as a desktop, with links to programs. There are many who feel the Internet browser can effectively replace your operating system ù one of the reasons Microsoft has been so active in its attempts to conquer the Internet market. However, there's a catch.

You can create a link to an executable with a syntax that works on both Navigator and IE:
<a href="file:///c|/Program Files/Paint Shop Pro 5/Psp.exe">Paint Shop Pro</A>
In Internet Explorer you can use a more traditional DOS path:
<a href="c:\Program Files\Paint Shop Pro 5\Psp.exe">Paint Shop Pro</A>

When you click on the link, this launches the application, but only after you have confirmed that's want you want to do. Typically, IE first displays a dialogue box giving you a choice of Run this program from its current location or Save this program to disk. This takes a couple of mouse clicks.

If you choose to run the program, you may encounter another dialogue box that asks if you want to install and run the executable, and complaining that it cannot find an authenticode signature. This takes another mouse click.

This is annoying, but the aim is to protect you from clicking on a Web link and accidentally launching executables on your system ù an excellent way to catch a nasty virus.

There may be a way around this, but I have not heard about it. I'd welcome any suggestions from readers. This limitation means that a browser makes a rather inconvenient desktop.

One possible workaround ù Internet Explorer 4 is well integrated with Windows Explorer, and you can make good use of this feature. Place a link in your HTML startup page like this:

<a href="c:\windows\Start menu">Start menu</A>

Now you can reach all the programs accessible from the Start menu by clicking on this link in the browser window. If you drag an application icon to the Start menu, a Shortcut is automatically created there. It's not the same as launching the application with a single click from your HTML startup page, but it's close.

- Neale Morison


Category:Internet
Issue: April 1999

These Web pages are produced by Australian PC World © 1999 IDG Communications