Skip to content

Get Full Path of a Windows Known Folder

This action retrieves the full path of a known folder identified by the folder’s KNOWNFOLDERID and stores it into a variable. See MSDN article about Known Folders

PropertyData TypeDescription
KnownFolderIDStringIndicates the KNOWNFOLDERID constant that identifies the Known Folder. See below.
ReturnVariableVarNameThe variable that will store the full path. For example %MYRESULT%.

See the corresponding MSDN article for all KNOWNFOLDERID constants

Some examples:

  • FOLDERID_LocalAppDataLow returns %USERPROFILE%\AppData\LocalLow.
  • FOLDERID_InternetCache returns %LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files.

All paths are returned without a trailing backslash. For example, “C:\Users” is returned rather than “C:\Users\”.