- ASP - Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·What's New?
Mail List


Directory Attributes
The properties of a directory are readable and displayable in asp.  This is especially useful when you have directories that get updated frequently and you want the date they were last modified to display on a web page.  Just about any attribute that is available by right mouse clicking on an item and displaying properties on a PC are available through the methods listed below.
View the Output
Text View
Print View
Mail this Link
Download the Code

Set fso = Server.CreateObject ("scripting.filesystemobject")
location = server.mappath("images")
Set folder = fso.GetFolder(location)

<font color ="#FF0000">&lt;% =folder.size %&gt;</font>
<% =folder.Size %> bytes
<font color ="#FF0000">&lt;% =folder.datecreated %&gt;</font>
<% =folder.datecreated %>
<font color ="#FF0000">&lt;% =folder.datelastmodified %&gt;</font>
<% =folder.datelastmodified %>
<font color ="#FF0000">&lt;% %&gt;</font>
<% %>




ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement is hosted by
    Donate Food Online with a Mouse Click at
    Donate Land Online with a Mouse Click at
    © 1999 - 2018
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3