ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Temporary directory
  • Bin
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.
Example
WEBDEV - Server codeAjax
// 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.
srAppDataDirectory that will be used by the applications to store the data (specific to the user).
srDocumentsLibraryDirectory containing the library of documents.
srRecordedTVLibraryDirectory containing the library of TV recordings.
srPicturesLibraryDirectory containing the library of images.
srMusicLibraryDirectory containing the music library.
srLibrariesDirectory containing the libraries.
srVideosLibraryDirectory containing the library of videos.
srDesktopDirectory corresponding to the Windows desktop.
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.
srScreenshotsDirectory that contains the screenshots.
srContactsDirectory containing the contacts (especially the cards of email correspondents).
srCookiesDirectory containing the cookies generated when navigating on Internet (Internet Explorer only).
srStartupDirectory containing the applications that will be automatically started when the system or a session is started.
srStartMenuDirectory containing the shortcuts of "Start" menu.
srSendToDirectory corresponding to the "Send to" menu.
srUserPinnedDirectory containing the shortcuts pinned by the user.
srFavoritesDirectory containing the "Favorites" (addresses of favorite Internet sites).
srCDBurnDirectory containing the data to burn.
srHistoryDirectory containing the history.
srAccountPicturesDirectory containing the images of user account.
srOriginalImagesDirectory containing the original images.
srRoamedTileImagesDirectory containing the images for the roaming tiles.
srQuickLaunchDirectory containing the shortcuts for the launch bar.
srLinksDirectory containing the links.
srPlaylistsDirectory containing the playlists.
srLocalAppDataLowDirectory containing the rules of application data (specific to the computer rather than to a user).
srMyMusicDirectory containing the music files of user.
srMyDocumentsDirectory containing the documents of user.
srMyPicturesDirectory for storing images.
srMyVideosDirectory containing the Video files of the user.
srTemplatesDirectory of document templates.
srAdminToolsDirectory containing the management tools.
srProfileDirectory corresponding to the user profile.
srUserProfilesDirectory containing the user profiles.
srProgramFilesSetup Directory of Applications.
srUserProgramFilesCommonDirectory for installing the elements common to several applications belonging to the user.
srUserProgramFilesSetup directory of user applications.
srProgramFilesX64Setup directory of 64-bit applications.
srProgramFilesCommonX64Directory for installing the elements common to several 64-bit applications.
srProgramFilesX86Setup directory of x86 applications.
srProgramFilesCommonX86Directory for installing the elements common to several x86 application.
srCommonProgramFilesSetup directory for elements common to several applications.
srProgramsDirectory containing the "Program" submenu of the "Start" menu.
srApplicationShortcutsDirectory containing the application shortcuts.
srImplicitAppShortcutsDirectory containing the shortcuts of implicit applications.
srPrinterShortcutsDirectory containing the printer shortcuts.
srNetworkShortcutsDirectory containing the network shortcuts.
srRecentShortcuts to the last documents used.
srSavedGamesDirectory containing the backups of games.
srSavedSearchesDirectory containing the backups of searches.
srRingtonesDirectory containing the ring tones.
srGameTasksDirectory containing the game tasks.
srDownloadsDirectory containing all the downloads performed by the user.
srRoamingTilesDirectory containing the data for the roaming tiles.
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).
srLocalAppDataDirectory that will be used by the applications to store the data (specific to a user).
srPublicLibrariesDirectory containing the libraries.
srCommonDesktopDirectory corresponding to the Windows desktop.
srCommonStartupDirectory containing the applications that will be automatically started when the system or a session is started.
srCommonStartMenuDirectory containing the shortcuts of "Start" menu.
srSamplePicturesDirectory containing the image samples.
srSamplePlaylistsDirectory containing the playlist samples.
srSampleMusicDirectory containing the music samples.
srSampleVideosDirectory containing the video samples.
srCommonFavoritesDirectory containing the Favorites.
srFontsDirectory of fonts installed on the system (to enumerate the fonts, use FontList).
srSidebarPartsDirectory containing the gadgets.
srPublicUserTilesDirectory containing the images of user account.
srCommonPicturesDirectory containing the shared images.
srDeviceMetadataStoreDirectory containing the metadata store.
srCommonMyDocumentsDirectory containing the documents of user.
srCommonTemplatesDirectory of document templates.
srCommonMusicDirectory containing the common music.
srCommonAdminToolsDirectory containing the management tools.
srCommonProgramsDirectory containing the "Program" submenu of the "Start" menu.
srPublicDirectory containing the public data.
srResourcesDirectory containing the resources.
srResourcesLocalizedDirectory containing the localized resources.
srPublicRingtonesDirectory containing the ring tones.
srSystemSystem directory.
srSystemX86x86 system directory.
srPublicGameTasksDirectory containing the game tasks.
srPublicDownloadsDirectory containing all the downloads.
srCommonVideoDirectory containing the shared videos.
srWindows
(Default value)
Directory of Windows.
PHP This parameter is not available. SysDir can only be used to return the system directory (equivalent to the srSystem 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".
Component: wd290std.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