J
Joe
I'm trying to use the GetFile method of the filesystem
object to determine file attributes. I'm using the code
as suggested in MSDN, and find that the GetFile method
causes IIS to hang. (won't serve web pages until I
reboot.)
I've used the MapPath method to be sure I've passed a
fully qualified file name. The code I'm using from MSDN
is as follows:
<%
Function ShowFileAccessInfo(filespec)
dim fso, f, s
set fso = _
CreateObject("Scripting.FileSystemObject")
set f = fso.GetFile(filespec)
s = f.Path & "<br>"
s = s & "Created: " & f.DateCreated & "<br>"
ShowFileAccessInfo = s
End Function
%>
My code used to call this function is as follows:
<%
dim strFileName
strFileName = Server.MapPath("test.txt")
response.write "Here's the info for: " & strFileName
response.write ShowFileAccessInfo(strFileName)
%>
Thanks for any suggestions!
object to determine file attributes. I'm using the code
as suggested in MSDN, and find that the GetFile method
causes IIS to hang. (won't serve web pages until I
reboot.)
I've used the MapPath method to be sure I've passed a
fully qualified file name. The code I'm using from MSDN
is as follows:
<%
Function ShowFileAccessInfo(filespec)
dim fso, f, s
set fso = _
CreateObject("Scripting.FileSystemObject")
set f = fso.GetFile(filespec)
s = f.Path & "<br>"
s = s & "Created: " & f.DateCreated & "<br>"
ShowFileAccessInfo = s
End Function
%>
My code used to call this function is as follows:
<%
dim strFileName
strFileName = Server.MapPath("test.txt")
response.write "Here's the info for: " & strFileName
response.write ShowFileAccessInfo(strFileName)
%>
Thanks for any suggestions!