ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Temporary directory
  • Bin
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysDir (Function)
In french: SysRep
Returns the path of a system directory.
WEBDEV - Server code Returns the path of a system directory on the server.
PHP In this version, this function can only be used to return the system directory.
Universal Windows 10 App In this version, this function can only be used to return the directory that will be used by the applications to store the data (specific to the user).
Example
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
// Retrieve the path of system directory
ResDir = SysDir(srSystem)
PHP
// Retrieve the path of system directory
ResDir = SysDir()
Syntax
<Result> = SysDir([<System directory>])
<Result>: Character string
Full path of specified directory.
<System directory>: Optional constant
Corresponds to one of the following constants:
Directory depending on the user
srPhotoAlbumsDirectory containing the photo albums.
Universal Windows 10 App This constant is not supported.
srAppDataDirectory that will be used by the applications to store the data (specific to the user).
srDocumentsLibraryDirectory containing the library of documents.
Universal Windows 10 App This constant is not supported.
srRecordedTVLibraryDirectory containing the library of TV recordings.
Universal Windows 10 App This constant is not supported.
srPicturesLibraryDirectory containing the library of images.
Universal Windows 10 App This constant is not supported.
srMusicLibraryDirectory containing the music library.
Universal Windows 10 App This constant is not supported.
srLibrariesDirectory containing the libraries.
Universal Windows 10 App This constant is not supported.
srVideosLibraryDirectory containing the library of videos.
Universal Windows 10 App This constant is not supported.
srDesktopDirectory corresponding to the Windows desktop.
Universal Windows 10 App This constant is not supported.
srInternetCacheDirectory used by Internet Explorer to store the last elements used.
Remark: In Vista, to access this directory, "Enable the protected mode" must be unchecked in the options of Internet Explorer.
Universal Windows 10 App This constant is not supported.
srScreenshotsDirectory that contains the screenshots.
Universal Windows 10 App This constant is not supported.
srContactsDirectory containing the contacts (especially the cards of email correspondents).
Universal Windows 10 App This constant is not supported.
srCookiesDirectory containing the cookies generated when navigating on Internet (Internet Explorer only).
Universal Windows 10 App This constant is not supported.
srStartupDirectory containing the applications that will be automatically started when the system or a session is started.
Universal Windows 10 App This constant is not supported.
srStartMenuDirectory containing the shortcuts of "Start" menu.
Universal Windows 10 App This constant is not supported.
srSendToDirectory corresponding to the "Send to" menu.
Universal Windows 10 App This constant is not supported.
srUserPinnedDirectory containing the shortcuts pinned by the user.
Universal Windows 10 App This constant is not supported.
srFavoritesDirectory containing the "Favorites" (addresses of favorite Internet sites).
Universal Windows 10 App This constant is not supported.
srCDBurnDirectory containing the data to burn.
Universal Windows 10 App This constant is not supported.
srHistoryDirectory containing the history.
Universal Windows 10 App This constant is not supported.
srAccountPicturesDirectory containing the images of user account.
Universal Windows 10 App This constant is not supported.
srOriginalImagesDirectory containing the original images.
Universal Windows 10 App This constant is not supported.
srRoamedTileImagesDirectory containing the images for the roaming tiles.
Universal Windows 10 App This constant is not supported.
srQuickLaunchDirectory containing the shortcuts for the launch bar.
srLinksDirectory containing the links.
Universal Windows 10 App This constant is not supported.
srPlaylistsDirectory containing the playlists.
Universal Windows 10 App This constant is not supported.
srLocalAppDataLowDirectory containing the rules of application data (specific to the computer rather than to a user).
Universal Windows 10 App This constant is not supported.
srMyMusicDirectory containing the music files of user.
Universal Windows 10 App This constant is not supported.
srMyDocumentsDirectory containing the documents of user.
Universal Windows 10 App This constant is not supported.
srMyPicturesDirectory for storing images.
Universal Windows 10 App This constant is not supported.
srMyVideosDirectory containing the Video files of the user.
Universal Windows 10 App This constant is not supported.
srTemplatesDirectory of document templates.
Universal Windows 10 App This constant is not supported.
srAdminToolsDirectory containing the management tools.
Universal Windows 10 App This constant is not supported.
srProfileDirectory corresponding to the user profile.
Universal Windows 10 App This constant is not supported.
srUserProfilesDirectory containing the user profiles.
Universal Windows 10 App This constant is not supported.
srProgramFilesSetup Directory of Applications.
Universal Windows 10 App This constant is not supported.
srUserProgramFilesCommonDirectory for installing the elements common to several applications belonging to the user.
Universal Windows 10 App This constant is not supported.
srUserProgramFilesSetup directory of user applications.
Universal Windows 10 App This constant is not supported.
srProgramFilesX64Setup directory of 64-bit applications.
Universal Windows 10 App This constant is not supported.
srProgramFilesCommonX64Directory for installing the elements common to several 64-bit applications.
Universal Windows 10 App This constant is not supported.
srProgramFilesX86Setup directory of x86 applications.
Universal Windows 10 App This constant is not supported.
srProgramFilesCommonX86Directory for installing the elements common to several x86 application.
Universal Windows 10 App This constant is not supported.
srCommonProgramFilesSetup directory for elements common to several applications.
Universal Windows 10 App This constant is not supported.
srProgramsDirectory containing the "Program" submenu of the "Start" menu.
Universal Windows 10 App This constant is not supported.
srApplicationShortcutsDirectory containing the application shortcuts.
Universal Windows 10 App This constant is not supported.
srImplicitAppShortcutsDirectory containing the shortcuts of implicit applications.
Universal Windows 10 App This constant is not supported.
srPrinterShortcutsDirectory containing the printer shortcuts.
Universal Windows 10 App This constant is not supported.
srNetworkShortcutsDirectory containing the network shortcuts.
Universal Windows 10 App This constant is not supported.
srRecentShortcuts to the last documents used.
Universal Windows 10 App This constant is not supported.
srSavedGamesDirectory containing the backups of games.
Universal Windows 10 App This constant is not supported.
srSavedSearchesDirectory containing the backups of searches.
Universal Windows 10 App This constant is not supported.
srRingtonesDirectory containing the ring tones.
Universal Windows 10 App This constant is not supported.
srGameTasksDirectory containing the game tasks.
Universal Windows 10 App This constant is not supported.
srDownloadsDirectory containing all the downloads performed by the user.
Universal Windows 10 App This constant is not supported.
srRoamingTilesDirectory containing the data for the roaming tiles.
Universal Windows 10 App This constant is not supported.
Directory depending on the system only (common to all the users)
srCommonAppDataDirectory that will be used by the applications to store the data (common to all the users).
Universal Windows 10 App This constant is not supported.
srLocalAppDataDirectory that will be used by the applications to store the data (specific to a user).
Universal Windows 10 App This constant is not supported.
srPublicLibrariesDirectory containing the libraries.
Universal Windows 10 App This constant is not supported.
srCommonDesktopDirectory corresponding to the Windows desktop.
Universal Windows 10 App This constant is not supported.
srCommonStartupDirectory containing the applications that will be automatically started when the system or a session is started.
Universal Windows 10 App This constant is not supported.
srCommonStartMenuDirectory containing the shortcuts of "Start" menu.
Universal Windows 10 App This constant is not supported.
srSamplePicturesDirectory containing the image samples.
Universal Windows 10 App This constant is not supported.
srSamplePlaylistsDirectory containing the playlist samples.
Universal Windows 10 App This constant is not supported.
srSampleMusicDirectory containing the music samples.
Universal Windows 10 App This constant is not supported.
srSampleVideosDirectory containing the video samples.
Universal Windows 10 App This constant is not supported.
srCommonFavoritesDirectory containing the Favorites.
Universal Windows 10 App This constant is not supported.
srFontsDirectory of fonts installed on the system (to enumerate the fonts, use FontList).
Universal Windows 10 App This constant is not supported.
srSidebarPartsDirectory containing the gadgets.
Universal Windows 10 App This constant is not supported.
srPublicUserTilesDirectory containing the images of user account.
Universal Windows 10 App This constant is not supported.
srCommonPicturesDirectory containing the shared images.
Universal Windows 10 App This constant is not supported.
srDeviceMetadataStoreDirectory containing the metadata store.
Universal Windows 10 App This constant is not supported.
srCommonMyDocumentsDirectory containing the documents of user.
Universal Windows 10 App This constant is not supported.
srCommonTemplatesDirectory of document templates.
Universal Windows 10 App This constant is not supported.
srCommonMusicDirectory containing the common music.
Universal Windows 10 App This constant is not supported.
srCommonAdminToolsDirectory containing the management tools.
Universal Windows 10 App This constant is not supported.
srCommonProgramsDirectory containing the "Program" submenu of the "Start" menu.
Universal Windows 10 App This constant is not supported.
srPublicDirectory containing the public data.
Universal Windows 10 App This constant is not supported.
srResourcesDirectory containing the resources.
Universal Windows 10 App This constant is not supported.
srResourcesLocalizedDirectory containing the localized resources.
Universal Windows 10 App This constant is not supported.
srPublicRingtonesDirectory containing the ring tones.
Universal Windows 10 App This constant is not supported.
srSystemSystem directory.
Universal Windows 10 App This constant is not supported.
srSystemX86x86 system directory.
Universal Windows 10 App This constant is not supported.
srPublicGameTasksDirectory containing the game tasks.
Universal Windows 10 App This constant is not supported.
srPublicDownloadsDirectory containing all the downloads.
Universal Windows 10 App This constant is not supported.
srCommonVideoDirectory containing the shared videos.
Universal Windows 10 App This constant is not supported.
srWindows
(Default value)
Directory of Windows.
Universal Windows 10 App This constant is not supported.
PHP This parameter is not available. SysDir can only be used to return the system directory (equivalent to the srSystem constant).
Universal Windows 10 App SysDir can only be used to return the directory for storing data (srAppData constant).
Remarks

Temporary directory

To get the temporary directory for the current user, use fTempPath.

Bin

The "Bin" corresponds to a virtual directory managed by Windows. Therefore, SysDir cannot be used to find out the path of "Bin".
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of several application features in the application generation wizard.
Required features:
  • Image library
  • Video library
  • Media library
  • Document library
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/09/2024

Send a report | Local help