-2

I need to launch exe file form user's local roaming folder. The options that I've are JavaScript, jQuery. I try to search but I found only ActivexObjects and that are only compatible with IE and not working with non-IE browsers.

Any guidance or suggestion will be handy.

M. Ali
  • 37
  • 6

2 Answers2

0

Let's suppose you have the following folder structure:

-WebPageFolder
  -index.html
  -file.txt

To open file.txt from within index.html, use this code:

<a href="file:///file.txt/">Open File</a>
Wais Kamal
  • 5,858
  • 2
  • 17
  • 36
0

It is not possible to launch an exe from a browser, except in the situation @Wais described. In that situation, you're asking the operating system to open a file and letting it decide which exe to launch to read that file, and even then, it's a file on the web server, not on the client's computer. Perhaps if you give us more detail on the end result you're trying to achieve rather than the (impossible) implementation you're suggesting we can help you more.

Michael Blackburn
  • 3,161
  • 1
  • 25
  • 18