A fileSystemObject Question 
Author Message
 A fileSystemObject Question

Hello, I am using this code to list the files in a directory :
Note : This is the VBScript version, but it also works with JScript...

<%
Dim path, fs, folder, f1, fc
path = Server.MapPath("/")
Set fs = CreateObject("Scripting.FileSystemObject")
Set folder = fs.GetFolder(path)
Set fc = folder.Files
For Each f1 in fc
response.write ("<br>" & f1)
Next
%>

It is working good on IIS4 but it doesn't work on IIS3. I get this message :

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'fs.GetFolder'

Is there a way to do the same job with an alternative object / method?

=================================================================
Thank you,
Jean-Fran?ois Lauz
RGB Technologies
Montral Qubec
www.rgbtech.com



Tue, 05 Jun 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. FileSystemObject Question

2. FileSystemObject Question

3. FileSystemObject Question

4. FileSystemObject question

5. FileSystemObject Question

6. A newbie FileSystemObject Question

7. FileSystemObject Question

8. Scripting.FileSystemObject question

9. 1st posting - FileSystemObject question

10. Newbie FileSystemObject question

11. FileSystemObject question.

12. Another FileSystemObject Question

 

 
Powered by phpBB® Forum Software