Hi Vilmos,
I tried java script approach but had hard luck.
I tried to use below 2 java script functions and tried to call them on button click() of a custom extension control
<script>
function myFunction1() {
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "start C:\\cr3\\cr3\\cr3.exe";
// Invoke the execute method.
oShell.ShellExecute(commandtoRun, "", "", "open", "1");
}
function myFunction2 {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("C:/cr3/cr3/cr3.exe", 1, false);
}
</script>
But I am struck with these error--->
--------------------------
ReferenceError: ActiveXObject is not defined
at RunFile (eval at globalEval (usnconeboxax1aos.cloud.onebox.dynamics.com/.../jquery-2.1.4.min.js:2:2538), <anonymous>:9:20)
--------------------------
Moreover I tried creating hyper link and a button as shown below to call the exe file. But it did not show any mercy.
<p><a href="file://c:/cr3bat.bat">launch2</a></p>
<p><input type="button" value="launch3" onclick="window.open('file:///c:/cr3bat.bat')" /></p>
May be as Martin said, It is not possible now to launch a local executable file from AX7 due to browser security and due to lack of proper permission to execute local exe file. If it works somehow, it may be browser specific as i understand. A common way to work in all browsers might not be possible.
If the conclusion is "Its impossible" -> this topic will be closed for discussion
But if there are any workarounds/ any different approach , Please comment here so that I can give a try.
Thanks for your replies.