Hello, I am currently creating a web page in JavaScript.
I want to start Outlook when I press the button (just launch exe, not create a new mail), but I am having trouble.
"When I press the button with the code below, it says ""Access denied."""
Please let me know if there is a solution or another way to do it.
<input type="button" value="sample" onclick=outlookopen('C: ~~~~~~OUTLOOK.EXE');>
<scriptla="javascript">
function outlookopen(exePath){
varobj = new ActiveXObject("WScript.Shell");
obj.Run(exePath);
}
</script>
This is Internet Explorer, and it should not be possible without customizing the settings, but is that so?
How to config IE to make "wscript.shell" work
How to troubleshoot script errors in Internet Explorer
Method 1: Verify Active Scripts, ActiveX, and Java are not blocked by Internet Explorer
Using ActiveX Controls in Internet Explorer 11
Also, near the page below, there is a list of links on the left side of the page that describes ActiveX and script-related options.
Run ActiveX Controls and Plug-ins
Instead, there seems to be a way to start without using ActiveX by registering a URI scheme.
However, it must be preconfigured on each PC that you want to run.
@sayuri replied 4 years ago.
How to execute exe of the client on a web browser without using ActiveX
Microsoft page to link from the above article
Registering an Application to a URI Scheme
External articles dealing with the same topic
Launch the app from the URL protocol in Windows
Program Launch Generic Protocol
© 2023 OneMinuteCode. All rights reserved.