General information
Title:
Active-X Security Warning using wsh shell.run()
With a hyperlink in a local (on the user's machine) HTML file calling a function that executes code like the following, I get an IE warning "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" The user must then answer YES, or the file is not opened.
function openpdf(cfilename)
dim owscript
set owscript = createobject("wscript.shell")
owscript.run(cfilename)
end function
If I just hyperlink to the page, it is opened in the browser and is readonly; I want it to be opened in Acrobat in its own window, and to be readwrite. This code does that, but with the undesirable behavior of the warning.
This is for code to be sent to many sites, so changing IE security settings or other configuration settings is not an option.
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only