ASP FSO Folder Folders object

Source: Internet
Author: User

ASP FSO Folder Folders object

The folder object is used to return information about the specified folder.


The Folder object
The folder object is used to return information about the specified folder.

The folder object of the same property and method, you will create an instance through the FileSystemObject object of the Folder object. First, create a folder that uses the FileSystemObject object and then instantiate the object by using the FileSystemObject object of the GetFolder method.

The following code uses the method GetFolder FileSystemObject object Instance Folder object and DateCreated property return date, the specified folder has been created:

<%
Dim FS,FO
Set fs=server.createobject ("Scripting.FileSystemObject")
Set Fo=fs. GetFolder ("C:test")
Response.Write ("Folder created:" & fo. DateCreated)
Set fo=nothing
Set fs=nothing
%>
Output:

Folder created:10/22/2001 10:01:19 AM


Collection
Collection description
folder specified in all files returned by archive collection
The child returns all of the collected subfolders in a specified folder

Performance
Property Description
property to set or return the folder specified by the property
Date and time of DateCreated return when a specified folder is created
datelastaccessed return date and time when a specified folder is last accessed
Date and time of DateLastModified return when a specified folder is last modified
Drives the drive letter returned by the drive specifies the folder where the
IsRootFolder returns True if the root folder of a folder and False if not
Name set or the name returned by the specified folder
ParentFolder returns the specified folder for the parent folder
Path returns the folder specified by the path
ShortName returns the specified folder for the short term name (8.3 naming convention)
ShortPath return short range a specified folder (8.3 naming convention)
Size of the returned size specified folder
Type returns the folder specified by the type

Method
Method description
The folder specified by the replica from one location to another
Delete Deletes the specified folder
Move to a specified folder from one location to another
CreateTextFile creates a new text file in the specified folder and returns the TextStream object to access the file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.