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
I'm afraid it's not possible to use ActiveX controls in JavaScript Windows Store apps this way. Windows Store apps are isolated from the system and cannot run arbitrary code from outside the app container. It would be too easy to insert malware that way.