WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

ASP Folder Object


The Folder Object is utilized to return data about a predetermined folder.


The Folder Object

The Folder object is utilized to return data about a predefined folder.

To work with the properties and techniques for the Folder object, you should make an example of the Folder object through the FileSystemObject object. First; make a FileSystemObject article and after that instantiate the Folder object through the GetFolder technique for the FileSystemObject object.

The following code utilizes the GetFolder strategy for the FileSystemObject article to instantiate the Folder object furthermore, the DateCreated property to restore the date when the predefined envelope was created:

<%
Diminish fs,fo
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set fo=fs.GetFolder("c:\test")
Response.Write("Folder made: " & fo.DateCreated)
set fo=nothing
set fs=nothing
%>

Output:

Envelope made: 10/22/2008 10:01:19 AM

The Folder article's accumulations, properties, and strategies are depicted beneath:

Collections

Collection Description
Files Returns an accumulation of the considerable number of records in a indicated folder
SubFolders Returns an accumulation of all subfolders in a predefined folder

Properties

Property Description
Attributes Sets or returns the qualities of a predefined folder
DateCreated Returns the date and time when a predefined envelope was created
DateLastAccessed Returns the date and time when a predefined envelope was last accessed
DateLastModified Returns the date and time when a predefined envelope was last modified
Drive Returns the drive letter of the drive where the predefined organizer resides
IsRootFolder Returns genuine if an organizer is the root envelope and false if not
Name Sets or returns the name of a predetermined folder
ParentFolder Returns the parent envelope of a predetermined folder
Path Returns the way for a predetermined folder
ShortName Returns the short name of a predetermined envelope (the 8.3 naming convention)
ShortPath Returns the short way of a predetermined envelope (the 8.3 naming convention)
Size Returns the measure of a predetermined folder
Type Returns the sort of a predefined folder

Methods

Method Description
Copy Copies a predefined organizer from one area to another
Delete Deletes a predefined folder
Move Moves a predefined organizer from one area to another
CreateTextFile Creates another content document in the predefined organizer and returns a TextStream item to get to the file