View Single Post
  #3 (permalink)  
Old August 25th, 2003, 03:07 PM
ssn651 ssn651 is offline
Registered User
Join Date: Aug 2003
Location: Lawrenceville, GA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Here is the code, filedetails.asp, of the exercise and below it the code which is needed for it to work.

<%Option Explicit%>

    Dim strFDPathInfo, strFDPhysicalPath
    strFDPathInfo = Request.ServerVariables("PATH_INFO")
    strFDPhysicalPath = Sever.MapPath(strFDPathInfo)
    Dim objFDFSO, objFDFile
    Set objFDFSO = CreateOject("Scripting.FileSystemObject")
    Set objFDFile = objFDFSO.GetFile(strFDPhysicalPath)


<DIV STYLE= "font-size:11; font-family: Verdana; ">
File Name: <B><%= strFDFile.Name &></B><BR>
Server Path: <B><%= strFDPathInfo %></B><BR>
Physical Path: <B><%= objFDFile.Path %></B><BR>
File Size: <B><%= objFDFile.size %></B><BR>
Date Created: <B><%= objFDFile.DateCreated %></B><BR>
Date Last Mofdified: <B><%= objFDFile.DateLastMofdified %></B><BR>
Date Last Accessed: <B><%= objFDFile.DateLastAccessed %></B><BR>

this is the file which has the include statement which refers to the code above.