Help with Scripting.FileSystemObject and security settings.

B

Bill Gauthier

I can not use a simple vbscript object in a local HTML file
without getting the...
"An ActiveX control on this page might be unsafe to
interact with other parts of the page. Do you want to
allow this interaction?"
....message everytime I load the page. I have adjusted the
internet (and intranet, and trusted site) security settings
until I am blue in the face but I still get the pop-up. I
have tried disabling the Norton Antivirus Script Blocking I
have running but that didn't help either. I am running IE
6.0 on Windows XP. How can I stop this prompt?
Here is the HTML file (c:\datafile.txt is a text file with
a few numbers in it)...



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<Script Language="vbscript">
sub ReadDatafileVB()
dim theINPUTFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set theINPUTFile=fso.OpenTextFile("c:\datafile.txt")
Do While theINPUTFile.AtEndOfStream <> True
var1.value = theINPUTFile.ReadLine
Loop
end sub
</Script>
</head>

<body onload="ReadDatafileVB">
</head>

<body onload="ReadDatafileVB">

<input type="Text" name="var1"

</body>
</html>
 
H

H Leboeuf

Look for this file c:\datafile.txt and rename it datafile.old.

Check for some virus or trojan.

There's also a good possibility that this is being caused by a third-party
program (adware, spyware, parasite).
Dealing with Unwanted Spyware, Parasites, Toolbars and Search Engines
http://mvps.org/winhelp2002/unwanted.htm
 
B

bg

Thanks for the suggestion, but I don't think that's it. Here's why...

I brought the htm listed in the original post to a PC at work that runs
Windows 2000 and it worked without popping up the ActiveX warning message. I
sent it to a co-worker who has XP Professional (like my home system) and he
was able to reproduce the problem immediately (the datafile.txt is a notepad
file with the numbers 1 through 4 in it, nothing malicious there). Testing
on three other XP systems have all produced the same unstoppable popup
whereas several Windows 2000 PCs do not.

Anyone know how to stop IE6 on XP from prompting you on ActiveX controls
even though the security settings are set to "enable" rather than "prompt"?


Bill.
 
H

H Leboeuf

So the function sub ReadDatafileVB() reads the file" c:\datafile.txt" and
gets 1, 2, 3, 4 out of it.
What does it do with it only the creator of the programs can tell you.
Possibly changing some values in your registry thus giving you problems.

Did you at least try to rename the file?
 
B

bg

I did try changing the name but the annoying pop-up still happens.

The "Scripting.FileSystemObject" is not a custom user-written piece of
code, it is included with Windows IE as a standard API. The HTML file is a
simple example I created to re-create the issue. It opens a file, reads one
line at a time and pastes the value read into a text box. When finished
running, the last line of your datafile.txt should be in the text box. You
should be able to cut and paste the very simple HTML that I included in the
original post (and create a c:\datafile.txt with notepad) on your XP machine
and open it in IE and see the exact issue I'm trying to resolve. Please see
if you can get this page to run without the...
"An ActiveX control on this page might be unsafe to interact with other
parts of the page. Do you want to allow this interaction?"
.... pop-up every time the page is run or refreshed.

Thanks for looking into this.

Bill.
 
H

H Leboeuf

Run Hijack This. Post to the forum and see if they can identify anything
that may have been written to your registry that is cause this.

Go to http://www.spywareinfo.com/downloads.php#det
Download "Hijack This!" [freeware] or download direct (below):
http://www.merijn.org/files/hijackthis.zip

Unzip, double-click "HijackThis.exe" and Press "Scan".

When the scan is finished, the "Scan" button will change into a "Save Log"
button.
Click: "Save Log" (generates "hijackthis.log")

Next, HijackThis | Config [button] | Misc Tools [button]
Click: Generate StartupList log [button] (generates "startuplist.txt")

Next, go to the below location:
http://www.spywareinfo.com/forums/

Sign in, then copy and paste both files in your message.

HijackThis Quick Start Help
http://www.tomcoyote.org/hjt/

The Tutorial if you want to know more about the results or the .log file.
http://www.merijn.org/htlogtutorial.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top