I am encountering an issue with launching applications on a corporate portal that are tied to a specific business group. The problem arises when trying to access a file path that includes a ² character. This software is widely used on over 3000 computers globally, so changing the path is not a feasible solution. Below is the code snippet I am currently using:
<a href="javascript:LaunchApp1()">MC2 / ICE</a>
<script>
function LaunchApp1() {
if (navigator.userAgent.indexOf("WOW64") != -1 ||
navigator.userAgent.indexOf("Win64") != -1 ){
var ws = new ActiveXObject("WScript.Shell");
ws.Exec('"C:\\Program Files (x86)\\MC² Software\\ice.exe"');
}
else {
var ws = new ActiveXObject("WScript.Shell");
ws.Exec("C:\\Program Files\\MC² Software\\ice.exe");
}
}
</script>
Is there any workaround for dealing with the squared character in the file path? I have searched extensively but haven't found a solution.
Thank you!