473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem in scripting with FileSystemObject.

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
Jul 19 '05 #1
2 2799
I believe you might be experiencing the Norton problem. Have a look at
http://www.aspfaq.com/show.asp?id=2180 ...

"Fedroz" <fe***********************@hotmail.com> wrote in message
news:08****************************@phx.gbl...
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

Jul 19 '05 #2


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


The url doesn't work...
Where can i find the scripting module?

thx

d.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sb | last post by:
I'm trying to come up with a simple script to iterate through a bunch of images in a directory and delete the ones that haven't been viewed in x number of months. I thought "DateLastAccessed"...
9
by: Ed | last post by:
Is there any known issue with the use of "Scripting.FileSystemObject"? Here's a snippet of my code to obtain the filesize of a file Set fso = CreateObject("Scripting.FileSystemObject") Set...
2
by: John | last post by:
Can't get this to work. I'm creating a workaround for the absence of aspJPEG on my server. I'm using aspUpload but my server only uses aspThumb. After aspThumb optimizes the original pic the file...
1
by: andrewcw | last post by:
I have used System.Management in the past to extract and walk thru drives & check their type. I can also do it with COM's FileSystemObject. Here I am trying to just use the Management Object...
0
by: bobsab | last post by:
Hi all, My application uses ASP and several COM objects. The communication between ASP and the COMs works perfectly, and I have no errors when I call "Server.CreateObject" from ASP. The problem...
7
ADezii
by: ADezii | last post by:
The next series of Tips will involve the Microsoft Scripting Runtime Library (Scrrun.dll). This Library is, in my humble opinion, one of the most useful and practical Libraries ever created. With the...
0
ADezii
by: ADezii | last post by:
This is the 2nd Tip in a series of Tips on the Microsoft Scripting Runtime Library. The 1st Tip related to Drives, while this Tip will concentrate on the Folders (Directories) in your PC and various...
0
ADezii
by: ADezii | last post by:
This is the 3rd in a series of Tips dealing specifically with the Microsoft Scripting Runtime Library. In this Tip, we'll show you how to return specific Properties relating to Files, as well as...
0
ADezii
by: ADezii | last post by:
This is the last in a series of Tips involving the Microsoft Scripting Runtime Library and deals with creating, opening, writing to, reading from, and closing Text Files via this Library. At this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.