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 userDocuments
folderDownloads
: the current userDownloads
folderVideos
: the current userVideos
folderPictures
: the current userPictures
folderMusic
: the current userMusic
folderContacts
: the current userContacts
folderFavorites
: the current userFavorites
folderLinks
: the current userLinks
folderFonts
: theFonts
Windows folderStartup
: the current userStartup
folderStartMenu
: the current userStart Menu
folderSendto
: theSend to
Windows context menuRecent
: the current userRecents
folderWindows
: theWindows
folderSystem
: theSystem32
Windows folderProgramFiles
: theProgram Files (x86)
folder (for x86 LuaRT) orProgram Files
(for x64 LuaRT) folderDesktop
: the userDesktop
folderPrograms
: the userPrograms
Start Menu Folder (stores shortcuts to applications in the Start Menu)RoamingAppData
: the userRoaming AppData
folder, (stores application data on the current user profile)LocalAppData
: theLocal 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)