0

Please help me if this is possible to do. I am having .EXE file on server i want to run that file in web browser.

Please guide me how can i implement this?

Code Hungry
  • 3,930
  • 22
  • 67
  • 95

2 Answers2

1

No, it is not possible to open a .exe file in the browser. Internet Explorer can open ActiveX controls, and browsers with Java can load applets, but nether is a Windows executable file like you seem to want.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • Other browsers can run `.exe` files using emulators like [Boxedwine](http://www.boxedwine.org/), even if they don't support ActiveX. – Anderson Green Jun 06 '22 at 23:41
1

Web browsers cannot natively execute a random .EXE file (imagine the security implications).

Having said that, on a Windows machine (example), using ActiveX (in the IE browser for the sake of example) or the Mime handling capabilities of the browser, you can open up a Excel spreadsheet, PDF, even invoke Outlook (etc.) on your PC. This assumes the user have allowed such execution to occur etc... But its not the same as running the .EXE

robnick
  • 1,720
  • 17
  • 27
  • *"on a Windows machine, ActiveX can be used to open up a Excel spreadsheet, PDF, even invoke Outlook (etc.) on your PC."* Not in FF, or Chrome, or.. – Andrew Thompson Jan 23 '14 at 11:28
  • @AndrewThompson you can definitely open up a PDF via Chrome. My meaning is imply (a) you just can't run a .EXE, (b) it is possible however in some cases for a file to be opened such as PDF/Spreadsheet/Mail via the capabilities of the browser. Not wanting to start a comment war, thanks for your comment. – robnick Jan 23 '14 at 11:37