knownFolder Method

Returns an instance of a System.Shell.Folder based on a "well-known folder" name as defined within the user profile (for example, Documents or ProgramFiles).

Syntax

oKnownFolder = System.Shell.knownFolder(strKnownFolderPath)

Parameters

strKnownFolderPath Required. The well-known name of a folder as a string.

Return Value

An instance of a System.Shell.Folder object that can be used with System.Shell.Item object methods.

Remarks

The following are valid well-known folder names:

  • Desktop
  • Startup
  • StartMenu
  • Documents
  • Programs
  • CommonStartup
  • CommonPrograms
  • PublicDesktop
  • PublicFavorites
  • PublicDocuments
  • System
  • SystemX86
  • Profile
  • Windows
  • Pictures
  • Music
  • Videos
  • ProgramFiles
  • ProgramFilesCommon
  • ProgramFilesX86
  • ProgramFilesCommonX86
  • AdminTools
  • CommonAdminTools
  • PublicMusic
  • PublicPictures
  • PublicVideos
  • UserProfiles
  • Downloads
  • PublicDownloads
  • GadgetsUser
  • RecycleBinFolder
Note   Well-known names can vary between operating systems.

Applies To

System.Shell
Tags :


Page view tracker