sysutils.folders readonly property

Retrieves the full path of a Windows known folder as a string
This property is a virtual table that can be indexed using the following fields :

  • Documents: the current user Documents folder
  • Downloads: the current user Downloads folder
  • Videos: the current user Videos folder
  • Pictures: the current user Pictures folder
  • Music: the current user Music folder
  • Contacts: the current user Contacts folder
  • Favorites: the current user Favorites folder
  • Links: the current user Links folder
  • Fonts: the Fonts Windows folder
  • Startup: the current user Startup folder
  • StartMenu: the current user Start Menu folder
  • Sendto: the Send to Windows context menu
  • Recent: the current user Recents folder
  • Windows: the Windows folder
  • System: the System32 Windows folder
  • ProgramFiles: the Program Files (x86) folder (for x86 LuaRT) or Program Files (for x64 LuaRT) folder
  • Desktop: the user Desktop folder
  • Programs: the user Programs Start Menu Folder (stores shortcuts to applications in the Start Menu)
  • RoamingAppData: the user Roaming AppData folder, (stores application data on the current user profile)
  • LocalAppData: the Local Application Data folder, (stores application data that is specific to the computer)

Example

local sysutils = require "sysutils" print("User documents folder is "..sysutils.folders.Documents)