I use Internet Explorer 11.
When I click a <a>
tag, I want to open a folder on the user side PC.
I know Chrome and Firefox can't do this.
I'm trying to find information that Internet Explorer can do, but please let me know if it's difficult.
Already tried
·Place HTML files such as index.html locally, open them, and click > open tags.
·Register domain > tag click on trusted site with Internet Explorer option, but no response
For security reasons, it is prohibited.If you are restricting it to Internet Explorer, you may be able to create ActiveX controls, install them on that machine, and run them.However, I don't think it's HTML anymore.
Chrome experimentally implements the Native File System API.Depending on the function you want to realize, you may be able to use it.
Finally, we decided to use ActiveX.
Click the button to open the C:\work folder.
<script type="text/javascript">
var path="C:\\work";
path.replace(/\u002f/g, '\\');
function openExplorer(){
varopenWorlder='explorer.exe/n, /e, /root, '+path;
var ActiveXobj=new ActiveXObject("WScript.Shell");
ActiveXobj.Run(openWorlder);
}
</script>
<input type="button" value="button" onclick="openExplorer();">
Internet Explorer also requires registration with trusted sites.
Enable … even if you run the Internet Option > Trusted Sites > Custom Level > script.
570 Who developed the "avformat-59.dll" that comes with FFmpeg?
605 GDB gets version error when attempting to debug with the Presense SDK (IDE)
903 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
614 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.