PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • SOAP server
  • Application used in Windows Vista (and later)
  • Path of a system directory
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the directory from which the execution is started.
WEBDEV - Server code Returns the runtime directory of the project. This directory must be accessible in read/write. In most cases, it contains the data files and the other files handled by the WEBDEV site.
Caution: fExeDir is used to find out the runtime directory while fCurrentDir is used to find out the current directory.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Runtime directory
Info("This application is started from " + fExeDir())
Syntax
<Result> = fExeDir()
<Result>: Character string
Directory from which the executable is run. This path does not end with the "\" character.
  • In test mode (GO from WINDEV), corresponds to:
    • the generation directory given in the description of the current project configuration.
    • the EXE sub-directory of the project directory.
  • At run time, corresponds to the directory containing the current executable.
WEBDEV - Server code Runtime directory of the project. In test mode and in deployment (GO from WEBDEV), corresponds to the EXE sub-directory of the project directory.
Versions 15 and later
AndroidAndroid Widget Setup directory of the application (in the internal storage area).
New in version 15
AndroidAndroid Widget Setup directory of the application (in the internal storage area).
AndroidAndroid Widget Setup directory of the application (in the internal storage area).
Versions 16 and later
Universal Windows 10 App Data directory of the application.
New in version 16
Universal Windows 10 App Data directory of the application.
Universal Windows 10 App Data directory of the application.
Versions 17 and later
iPhone/iPad Root directory of application (accessible in read-only).
New in version 17
iPhone/iPad Root directory of application (accessible in read-only).
iPhone/iPad Root directory of application (accessible in read-only).
Remarks
WINDEVWEBDEV - Server codeReports and QueriesAjax

SOAP server

fExeDir used on a SOAP server returns the path of the directory containing the library of the SOAP server currently run.
WINDEVUser code (UMC)

Application used in Windows Vista (and later)

In Windows Vista (and later), the UAC mechanism implies some development constraints.
Therefore, the files used by the application (data files or INI files for example) should be stored in the specific directories of the application (and not in the directory of the executable). These directories are returned by fDataDirCommon, fDataDirUser, fGlobalDirCommon and fGlobalDirUser.

Path of a system directory

To find out the path of a system directory, use SysDir.
Related Examples:
Handling text files Unit examples (WINDEV): Handling text files
[ + ] Handling "text" files with WINDEV:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WEBDEV): Handling text files
[ + ] This example explains how to handle "non HFSQL" files with WEBDEV and it allows you to:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WINDEV Mobile): Handling text files
[ + ] Handling external "text" files:
- Create a text file
- Write into a text file
- Read in a text file
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment