GetCurrentDirectory

Description

Gets the current directory for your target application. If the application is deployed as a native C/S application, the current directory is the installation directory of the application executable; if the application is deployed with PowerClient, the current directory is the installation directory of the application (by default %APPDATA%\PBApps\Applications\ServerIP_AppName).

Syntax

GetCurrentDirectory ( )

Return value

String. Returns the full path name for the current directory.

Examples

This example puts the current directory name in a SingleLineEdit control:

sle_1.text = GetCurrentDirectory( )

See also

ChangeDirectory

CreateDirectory

DirectoryExists

RemoveDirectory