sysutils.folders
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 userDocumentsfolderDownloads:the current userDownloadsfolderVideos:the current userVideosfolderPictures:the current userPicturesfolderMusic:the current userMusicfolderContacts:the current userContactsfolderFavorites:the current userFavoritesfolderLinks:the current userLinksfolderFonts:theFontsWindows folderStartup:the current userStartupfolderStartMenu:the current userStart MenufolderSendto: theSend toWindows context menuRecent:the current userRecentsfolderWindows:theWindowsfolderSystem:theSystem32Windows folderProgramFiles:theProgram Files (x86)folder (for x86 LuaRT) orProgram Files(for x64 LuaRT) folderDesktop:the userDesktopfolderPrograms:the userProgramsStart Menu Folder (stores shortcuts to applications in the Start Menu)RoamingAppData:the userRoaming AppDatafolder, (stores application data on the current user profile)LocalAppData:theLocal Application Datafolder, (stores application data that is specific to the computer)
Example
--! luart-extensions
import sysutils
print("User documents folder is "..sysutils.folders.Documents)