熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

asp顯示文件夾屬性的函數

2022-06-13   來源: .NET編程 
    這是一個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
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.