What is the ASP folder object?

If we want any kind of information about a specific folder, we can use the ASP Folder object.

Below are some of the methods, collections, and properties involved:

Methods

  • CreateTextFile: This creates a new text file in a specific folder. It returns an object of TextStream to access the file.

  • Copy: This copies one folder from one location to another.

  • Move: This moves one folder from one location to another.

  • Delete: This deletes a specific folder.

Collections

  • Files: This returns all the files which are present in the specified folder.

  • SubFolders: This returns all the subfolders which are present in the specified folder.

Properties

  • Name: This specifies or returns the name of a specific folder.

  • Size: This returns the total size of a specific folder.

  • Type: This returns the type of a specific folder.

  • ParentFolder: This retrieves the parent folder of a specific folder.

  • Path: This retrieves the path of a specific folder.

  • ShortName: This returns the short name of a specific folder based on the version 8.3 naming convention.

  • ShortPath: This returns the short path of a specific folder based on the version 8.3 naming convention.

  • Attributes: This sets or retrieves the attributes of a specific folder.

  • Drive: This retrieves the drive letter where the specific file is present.

  • IsRootFolder: This returns true if a specific folder is a root folder. Otherwise, it returns false.

  • DateCreated: This retrieves the time and date when a specific folder was created.

  • DateLastModified: This retrieves the time and date when a specific folder was last modified.

  • DateLastAccessed: This retrieves the time and date when a specific folder was last accessed.

Collection of ASP Folder Object

Free Resources

Copyright ©2026 Educative, Inc. All rights reserved