Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4th ever question, Concerning Folder object

Status
Not open for further replies.

Tarwn

Programmer
Mar 20, 2001
5,787
US
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:
Code:
<%
Option Explicit

Dim fs, fsFiles, fsFolder
Dim sFile

Set fs=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)

If fs.FolderExists(&quot;c:\temp&quot;) = true Then
   Response.Write(&quot;Folder c:\temp exists!&quot;)
   Set fsFolder = fs.getFolder(&quot;c:\temp&quot;)
   Response.Write fsFolder.Name
Else
   Response.Write(&quot;Folder c:\temp does not exist!&quot;)
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 :) ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Anyone?
I understand that this should and probably does work for 99% of the people out there, I'm just hoping someone else ran into this problem somewhere before and could point me in a direction to find a solution.
Possible it's an IIS setting mis-set?
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Addendum:
Anyone have IIS fail startup after installing Win 200 sp3?
Log Entries:
World Wide Web Publishing hung on startup
FTP Hung on startup

-tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
ttt :)

No one had problems with Sp3 and IIS?
My computer must hate me.
------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Before I install SP3, I don't have any problem and now I cannot delete any file with an ASP page. Someone have find a solution please ask me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top