FileSystemObject

J

John

Hi!

I have written a sub routine which opens a file and write in it.
The code I wrote is the following:

Sub WriteToFile(afm,data)
Dim filename,objFSO,objFile
filename=afm

Set objFSO=CreateObject("Scripting.FileSystemObject")
Set objFile=objFSO.CreateTextFile(filename,true)
objFile.WriteLine data

objFile.Close

end sub

However, when I call the sub through the browser (I.E.) seems to take for
ages in order to handle the script.(when I remove the script evrything works
fine)
I Google it, and I found that maybe I should deactivate the anti-virus.I did
it.Nothing.

Any ideas?Please.The whole thing drives me crazy.I have done it before with
VB 6.0 and it worked pretty well.

Thnx John
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top