.exe files in HTML docs

How can I put a link to an .exe file on my web page, so when somebody clicks on it, it runs the program, instead of downloading the file?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

coopaConnect With a Mentor Commented:
I think you'll find that the browser will ask the user whether thay want to "open the file from it's current location" or "save the file".

As far as I know (for obvious security reasons) there is no way around this.
simple <a href="test.exe">testit</a>
where do you want to run the program on server or on client.

if it is on client then FRehman's answer will work.

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Coopa is right. No matter the type of executable, in HTML, you cant do it. It is going to depend on the users browser, and browser configuration. Just put a nate next to the link like this maybe:
<a href="OpenMe.exe">Click Here</a> <font size="-1">(Select open file, if your browser asks)</font>

there is bluf i dont believe it what happen what is correct answer
> there is bluf
No, there is no bluf !
My answer correct, your answer wrong.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.