How do you write a javascript that will start a program located on my hard drive?

I tried using

document.location.href = “C:\Program Files\Microsoft Office\OFFICE11\excel.exe”

but in IE nothing happens. In Firefox at least I get an error message:

firefox doesn’t know how to open this address because the protocol (c) isn’t associated with any program

I suspect that it doesn’t like the ‘c:\’ but nothing else that I’ve tried works.

Does anyone have any ideas, or know of another way to start a program with a javascript command?

This entry was posted in Uncategorized and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>