My web server has issues.
I have been trying to write a script for displaying the entire contents of a folder or drive (including recursively adding subfolders) and I have run into a small problem.
Any time I attempt to do anything with the Folder object IIS times out. I can check if the file/folder exists just fine with the FileSystemObject, but the second I attempt to use the .getFolder("c:\temp"
method I go into a dead cycle where the browser is not frozen, it's still loading, and DLL Host is not going crazy. I have in fact cut the code down to:
It may be my machine having issues, I am just wondering if anyone else has had this specific problem before.
-Tarwn
Someone answer, I am batting close to 0:3 on my post answers, please make this 1:4
------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
I have been trying to write a script for displaying the entire contents of a folder or drive (including recursively adding subfolders) and I have run into a small problem.
Any time I attempt to do anything with the Folder object IIS times out. I can check if the file/folder exists just fine with the FileSystemObject, but the second I attempt to use the .getFolder("c:\temp"
Code:
<%
Option Explicit
Dim fs, fsFiles, fsFolder
Dim sFile
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If fs.FolderExists("c:\temp") = true Then
Response.Write("Folder c:\temp exists!")
Set fsFolder = fs.getFolder("c:\temp")
Response.Write fsFolder.Name
Else
Response.Write("Folder c:\temp does not exist!")
End If
set fsFolder = nothing
set fsFiles = nothing
set sFile = nothing
set fs=nothing
%>
It may be my machine having issues, I am just wondering if anyone else has had this specific problem before.
-Tarwn
Someone answer, I am batting close to 0:3 on my post answers, please make this 1:4
Reverse Engineering - The expensive solution to not paying for proper documentation