Sign in Join
FPDoc Onlineexperiment

GetCurrentDir function

In unit sysutils

Return the current working directory of the application.

Declaration

pascal
function GetCurrentDir: AnsiString

Description

GetCurrentDir returns the current working directory.

Errors

None.

See also

Example: ex28

pascal
Program Example28;

{ This program demonstrates the GetCurrentDir function }

Uses sysutils;

Begin
  Writeln ('Current Directory is : ',GetCurrentDir);
End.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.