Click here to Skip to main content
15,749,039 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I have to access different local installed .exe to open different type of documents from browser. I want to achieve this without hampering security of documents.

I tried below code, its working but later found that it is very old way and it also can not insure security.


What I have tried:

  <p>Click <a href="file:///C:\FolderToUpload\12.doc" class="navbar">here</a></p>
Updated 14-Apr-16 21:08pm

1 solution

Code running in the browser has no access to the local system. You cannot explicitly launch an application; you can only send the browser a document with a specific MIME type, and let the browser decide what to do with it.
Share this answer
Sergey Alexandrovich Kryukov 14-Apr-16 15:01pm    
Sure, a 5.
The whole idea is too bad.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900