.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?
LukieAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
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.
0
 
FRehmanCommented:
simple <a href="test.exe">testit</a>
0
 
man068Commented:
where do you want to run the program on server or on client.

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

0
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.

 
swinslowCommented:
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>

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

8o)
0
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.