Hi
I have been using some asp code to provide folder listings of specific
folders on my server. This is very handy, allowing automatic web page
updates when a new file is ftpd to the folder, different ordering schemes
(e.g. reverse chronology), etc. I run NT4 server SP6a. About a month ago,
the code I use stopped working - The page loads up and then just times
out. At that time, I decided to use a redirection of the home URL on the
server to another one. I have since reverted to the original setup. I am
not sure if the code stopped working then or whether it was just a
coincidence. However, I cannot get the asp code to work. A very short
listing is below, if anyone can help (much appreciated). I indicate where
the code appears to break.
TIA
Joao
Dim StrPathInfo, StrPhysicalPath
Dim objFSO, objFileItem, objFolder, objFolderContents
StrPathInfo = "/test/"
StrPhysicalPath = Server.MapPath(StrPathInfo+"dummy.asp")
Response.Write(StrPathInfo&"<p>")
Response.Write(StrPhysicalPath&"<p>") // Displays OK
Set objFSO = CreateObject("Scripting.FileSystemObject")
Response.Write(StrPhysicalPath&"<p>") // Displays OK
Set objFile = objFSO.GetFile(StrPhysicalPath)
Response.Write(StrPhysicalPath&"<p>") // Breaks here - this line not
displayed
Set objFolder = objFile.ParentFolder
Response.Write(StrPhysicalPath&"<p>")