Problem in scripting with FileSystemObject.

F

Fedroz

Hi!

Here is my problem:
I'm trying a simple script copied by MSDN for read a text
file and put the content on output web page!
I use the following code:

Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso_OpenTextFile("c:\testfile.txt", ForReading)
response.write f.readAll()
f.Close
Set fso = nothing
Set f = nothing


It happens that the server goes in loop on the method
OpenTextFile.
The object FileSystemObject (fso) was correctly instanced,
but on the method fso_OpenTextFile the system begin an
infinite loop!!!

So i tryed to reistall the scripting module downloading
from http://www.microsoft.com/downloads/...&DisplayLang=en

Once I've reistalled the .exe from Microsoft, and
resterted the server, all goes WELL!!!!
Marvellous!!!


But everytime I've to reinstall the scripting module and
restart the machine!!!!


(My configuration: w2k SP4 in English, Internet Explorer
6.0 sp1 IIS 5.0)

Any idea?

Thx!


Fedroz
 

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

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top