Skip to content

GetCurrentDir

Return the current working directory of the application.

Declaration

Source position: diskh.inc line 19

function GetCurrentDir : AnsiString;

Description

GetCurrentDir returns the current working directory.

Errors

None.

See also

Name Description
SetCurrentDir Set the current directory of the application.
DiskFree Return the amount of free diskspace.
DiskSize Return the total amount of diskspace.

Example

Program Example28;

{ This program demonstrates the GetCurrentDir function }

Uses sysutils;

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