CodeAve.com CodeAve.com - ASP - Read/Write
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


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)
%>


<b>Size</b> 
<br>
<font color ="#FF0000">&lt;% =folder.size %&gt;</font>
<% =folder.Size %> bytes
<br>
<b>Created</b>
<br>
<font color ="#FF0000">&lt;% =folder.datecreated %&gt;</font>
<% =folder.datecreated %>
<br>
<b>Modified</b>
<br>
<font color ="#FF0000">&lt;% =folder.datelastmodified %&gt;</font>
<% =folder.datelastmodified %>
<br>
<b>Name</b>
<br>
<font color ="#FF0000">&lt;% =folder.name %&gt;</font>
<% =folder.name %>

 

 

 



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

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

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