⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asp_ref_folder.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>ASP Folder Object</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>ASP Folder Object</h1>
<a href="asp_ref_file.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="asp_ref_dictionary.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>
<hr />
<p class="intro">The Folder Object is used to return information about a 
specified folder.</p>
<hr />

<h2>The Folder Object</h2>

<p>The Folder object is used to return information about a specified folder.</p>

<p>To work with the properties and methods of the Folder object, you will have to 
create an instance of
the Folder object through the FileSystemObject object. First; create a FileSystemObject
object and then instantiate the Folder object through the GetFolder method of the
FileSystemObject object.</p>
<p>The following code uses the GetFolder method of the FileSystemObject object to
instantiate the Folder object and the DateCreated property to return the date when
the specified folder was created:</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <td valign="top">
      <pre>&lt;%
Dim fs,fo
Set fs=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set fo=fs.GetFolder(&quot;c:\test&quot;)
Response.Write(&quot;Folder created: &quot; &amp; fo.DateCreated)
set fo=nothing
set fs=nothing
%&gt;</pre>
      <p>Output:</p>
      <pre>Folder created: 10/22/2001 10:01:19 AM</pre>
    </td>
  </tr>
</table>

<p>The Folder object's collections, properties, and methods are described below: </p>

<h3>Collections</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="25%" align="left" valign="top">Collection</th>
    <th width="75%" align="left" valign="top">Description</th>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="coll_files.asp">Files</a></td>
    <td valign="top">Returns a collection of all the files in a
      specified folder</td>
  </tr>
  <tr>
    <td valign="top"><a href="coll_subfolders.asp">SubFolders</a></td>
    <td valign="top">Returns a collection of all subfolders in a specified folder</td>
  </tr>
  </table>
<h3>Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="25%" align="left" valign="top">Property</th>
    <th width="75%" align="left" valign="top">Description</th>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_attributes_folder.asp">Attributes</a></td>
    <td valign="top">Sets or returns the attributes of a specified folder</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_datecreated_folder.asp">DateCreated</a></td>
    <td valign="top">Returns the date and time when a specified folder was created</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_datelastaccessed_folder.asp">DateLastAccessed</a></td>
    <td valign="top">Returns the date and time when a specified folder was last accessed</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_datelastmodified_folder.asp">DateLastModified</a></td>
    <td valign="top">Returns the date and time when a specified folder was last modified</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_drive_folder.asp">Drive</a></td>
    <td valign="top">Returns the drive letter of the drive where the specified 
    folder resides</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_isrootfolder.asp">IsRootFolder</a></td>
    <td valign="top">Returns true if a folder is the root
      folder and false if not</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_name_folder.asp">Name</a></td>
    <td valign="top">Sets or returns the name of a specified folder</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_parentfolder_folder.asp">ParentFolder</a></td>
    <td valign="top">Returns the parent folder of a specified folder</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_path_folder.asp">Path</a></td>
    <td valign="top">Returns the path for a specified folder</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_shortname_folder.asp">ShortName</a></td>
    <td valign="top">Returns the short name of a specified folder (the 8.3 naming convention)</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_shortpath_folder.asp">ShortPath</a></td>
    <td valign="top">Returns the short path of a specified folder (the 8.3 naming convention)</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_size_folder.asp">Size</a></td>
    <td valign="top">Returns the size of a specified folder</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="prop_type_folder.asp">Type</a></td>
    <td valign="top">Returns the type of a specified folder</td>
  </tr>
</table>

<h3>Methods</h3>

<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr valign="top">
    <th width="25%" align="left" valign="top">Method</th>
    <th width="75%" align="left" valign="top">Description</th>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="met_copy_folder.asp">Copy</a></td>
    <td valign="top">Copies a specified folder from one location to another</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="met_delete_folder.asp">Delete</a></td>
    <td valign="top">Deletes a specified folder</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_move_folder.asp">Move</a></td>
    <td valign="top">Moves a specified folder from one location to another</td>
  </tr>
  <tr valign="top">
    <td valign="top"><a href="met_createtextfile_folder.asp">CreateTextFile</a></td>
    <td valign="top">Creates a new text file in the specified folder and returns a TextStream object to
      access the
      file</td>
  </tr>
</table>
<br />
<hr />
<a href="asp_ref_file.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="asp_ref_dictionary.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -