search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

ASP Folder

Collection 17
Read 15264
update time 2016-09-11

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


Folder Object

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

To operate the related properties and methods of the Folder object, you need 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.

The following code uses the GetFolder method of the FileSystemObject object to instantiate the Folder object, and uses the DateCreated property to return the creation date of the specified folder:

<%
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/2008 10:01:19 AM

The collection, properties and methods of the Folder object are described as follows:

Collection

Collection Description
FilesReturns a collection of all files in the specified folder.
SubFoldersReturns the collection of all subfolders in the specified folder.

Attributes

AttributesDescription
AttributesSets or returns the specified Properties of the folder.
DateCreated Returns the date and time the specified folder was created.
DateLastAccessedReturns the date and time the specified folder was last accessed.
DateLastModifiedReturns the date and time the specified folder was last modified.
DriveReturns the drive letter of the drive where the specified folder is located.
IsRootFolderReturns true if the folder is the root folder, false otherwise.
NameSet or return the name of the specified folder.
ParentFolderReturns the parent folder of the specified folder.
PathReturns the path to the specified folder.
ShortNameReturns the short name of the specified folder (8.3 naming convention).
ShortPathReturns the short path (8.3 naming convention) of the specified folder.
SizeReturns the size of the specified folder.
TypeReturns the type of the specified folder.

Method

MethodDescription
CopyCopy the specified folder from one location to another.
DeleteDelete the specified folder.
MoveMove the specified folder from one location to another.
CreateTextFileCreates a new text file in the specified folder and returns a TextStream object to access this file.

Hot AI Tools
Undress AI Tool
Undress AI Tool

Undress images for free

AI Clothes Remover
AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress
Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT
ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT
Stock Market GPT

AI powered investment research for smarter decisions

Popular tool
Notepad++7.3.1
Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version
SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1
Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6
Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version
SublimeText3 Mac version

God-level code editing software (SublimeText3)