Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB script inside HTML gives warning

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
0
0
IL
HI,

Inside my HTML file I run the following VB script to unzip a certain file:

<script language=VBScript>
set objShell=CreateObject("Wscript.Shell")
objShell.Run("unzip ""d:\documents and Settings\lev\desktop\HW03339_20061224_P3104_py.zip"" -d D:\WINNT\Temp")
</script>

All works well,however during opening the HTML file (it runs the above script) I get a warning :

"An ActiveX control on this page might be unsafe to interract with other part of this page.Do you want to aloow this interraction?"

How do I get rid of this warning ?

Long live king Moshiach !
 
How do I get rid of this warning ?
You don't - that's the broswer's security kicking in. Imagine what would happen if you could execute any code you wanted on the clients machine without asking for permission first...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Since you're running this script locally rather than through a web server, try this help from a TT expert:
kaht said:
To turn off the "feature" in IE that prevents scripts from running on local files:

1) tools
2) internet options
3) advanced tab
4) scroll to security section
5) check the "Allow active content to run in files on my computer" box.


Here's a link with more info:

-kaht

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top