Jaikumar B Bathija
03-27-2000, 03:00 AM
just check if that folder exists cos i get that error if and only if
that folder which u r looking for does not exist
-----Original Message-----
From: John K. [mailto:john.k@home.se]
Posted At: Sunday, March 26, 2000 11:13 AM
Posted To: asp
Conversation: Object Variable Not Set
Subject: Object Variable Not Set
Set fs = server.CreateObject("Scripting.FileSystemObject")
Set folder = fs.GetFolder("d:\pictures")
Set fc = folder.Files
ReDim sFiler(fc.count)
For Each f in folder.files
if readfile(f.path, stext, nlen) = 1 then nAntal = nAntal + 1:
sFiler(nAntal) = sfile
Next
Does anyone know what's wrong with the code?
I get the error: Object Variable Not Set
that folder which u r looking for does not exist
-----Original Message-----
From: John K. [mailto:john.k@home.se]
Posted At: Sunday, March 26, 2000 11:13 AM
Posted To: asp
Conversation: Object Variable Not Set
Subject: Object Variable Not Set
Set fs = server.CreateObject("Scripting.FileSystemObject")
Set folder = fs.GetFolder("d:\pictures")
Set fc = folder.Files
ReDim sFiler(fc.count)
For Each f in folder.files
if readfile(f.path, stext, nlen) = 1 then nAntal = nAntal + 1:
sFiler(nAntal) = sfile
Next
Does anyone know what's wrong with the code?
I get the error: Object Variable Not Set