Skip to main content

Get System Folder Path

Command description

Get a system folder path on the current computer and save it as a variable.

Command Input Parameters

input parametersInput parameter typeDescription
System Folder NameenumDesktop, Favorites, Downloads, Start Menu, Pictures, Documents, Music, Videos, User Home, Temporary Folder, App Data, Local App Data

Command Output Parameters

Output parametersOutput parameter typeDescription
System Folder PathstrObtained system folder path

Edge Cases

  • The command reports an error if System Folder Name is not a supported enum value.
  • This command only returns the system directory path and does not create, delete or verify the directory contents; some directories will read the Windows registry first, and use the default path if it cannot be read.

Generation Notes

  • Return a system-folder path without creating or modifying files.