Hello,
My page never finishes loading, it just sits and runs forever. And then if I stop it and attempt to view another asp page it does the same thing. However, if I open a new window (start a new session) then it runs fine, until I attempt to load that specific page.
By placing a series of Response.write and response.flush's I was able to track it down to my GetFolder call. The I_USER account has access to read it, so I'm not sure what the problem is.
Here's the code:
Any suggestions?
Earme
ps. Thanks Ovatvvon for getting me this far![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
My page never finishes loading, it just sits and runs forever. And then if I stop it and attempt to view another asp page it does the same thing. However, if I open a new window (start a new session) then it runs fine, until I attempt to load that specific page.
By placing a series of Response.write and response.flush's I was able to track it down to my GetFolder call. The I_USER account has access to read it, so I'm not sure what the problem is.
Here's the code:
Code:
dim objFileSys 'File system object
dim objFolder 'Folder Object
dim objFiles 'Files Object
dim strFolder 'string containing folder location
strFolder = "c:\custrefs"
set objFileSys = Server.CreateObject("Scripting.FileSystemObject")
set objFolder = objFileSys.GetFolder(strFolder)
set objFiles = objFolder.Files
For each item in objFiles
If lcase(right(item.name,7)) = "001.txt" Then
Response.write(item.name & "<BR>")
End If
Next
set objFiles = nothing
set objFolder = nothing
set objFileSys = nothing
Any suggestions?
Earme
ps. Thanks Ovatvvon for getting me this far