Click here to Skip to main content
15,892,298 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.

Thanks,
Pushkar

What I have tried:

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

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
 
Comments
Sergey Alexandrovich Kryukov 14-Apr-16 15:01pm    
Sure, a 5.
The whole idea is too bad.
—SA

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