hi

i'm trying to run an exe file on the client side using the following code:

var oShell = new ActiveXObject("Shell.Application");
var prog = "C:\\Program Files\\Microsoft Office\\Office12\\Excel.exe";
oShell.ShellExecute(prog,"","","open","1");

when i run the code it fails with "Access denied" error which i cannot resolve.
i modified my ie (8) settings to allow unsigned activex controls and the initialization of controls not markes as safe.
still i get the error.
i run the aplication on windows 7.

1. Tools->Internet Options->Security->Internet(zone)->Custom Level-> Under ActiveX controls and plug-ins, Enable the options.
2. It would be better to add your site to the Trsuted sites list and configure activex for that zone.

ok i'l try
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.