這是一個ASP顯示文件夾屬性的函數
和大家一起分享一下
\ GenerateFolderInformation
\ 目的
\ 生成一個字符串來描述文件夾的當前狀態
\ 示范下面的內容
\ FolderPath
\ FolderName
\ FolderDateCreated
\ FolderDateLastAccessed
\ FolderDateLastModified
\ FolderSize
Function GenerateFolderInformation(Folder)
Dim S
S = \Path:\ & TabStop & FolderPath
S = S & NewLine & \Name:\ & TabStop & FolderName
S = S & NewLine & \Attribs:\ & TabStop & ShowFileAttr(Folder)
S = S & NewLine & \Created:\ & TabStop & FolderDateCreated
S = S & NewLine & \Accessed:\ & TabStop & FolderDateLastAccessed
S = S & NewLine & \Modified:\ & TabStop & FolderDateLastModified
S = S & NewLine & \Size:\ & TabStop & FolderSize & NewLine
GenerateFolderInformation = S
End Function
From:http://tw.wingwit.com/Article/program/net/201311/11896.html