How to open a .exe file from WinJS

Viewed 632

I'm trying to open a .exe application from WinJS but I get an error, this is my code:

    var comando = "C:\\Program%20Files%20(x86)\\Windows%20Media%20Player\\wmplayer.exe";
    var oShell = new ActiveXObject("Shell.Application");
    //var commandtoRun = "C:\\Windows\\notepad.exe";
    oShell.ShellExecute(comando, "", "", "open", "1");

but I get an error...

0x800A01AD - Runtime Error in JavaScript: Automation server can not create object

any help I'll appreciate

2 Answers
Related