0

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.

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by emilio
0

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.

Edited by Ramesh S: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.