Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active-X Security Warning using wsh shell.run()
Message
From
22/07/2003 19:18:30
 
 
To
All
General information
Forum:
Internet
Category:
VBScript
Title:
Active-X Security Warning using wsh shell.run()
Miscellaneous
Thread ID:
00812588
Message ID:
00812588
Views:
60
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
Map
View

Click here to load this message in the networking platform