JDK
JDK

Reputation: 83

how to open shared folder file in local system file explorer using <a href=" "> </a>

 <a href="file://90.0.0.12/mydata/pdfFolder/data.pdf">shared file</a>

above link work in IE but not in Chrome and firefox.

how to open above link in my local system file explorer window using above code in chrome and firebox browser

Upvotes: 0

Views: 623

Answers (1)

Adi Azarya
Adi Azarya

Reputation: 4473

Linking to local resources is disabled in all modern browsers due to security restrictions. you can create a bat file (file.bat) with this commands be aware about the security issues.

taskkill /F /IM chrome.exe
start chrome.exe --allow-file-access-from-files %CD%\YOUR_HTML_FILE.html

Upvotes: 1

Related Questions