Description |
The GetCurrentDir procedure returns a string containing the drive plus path name of the current directory.
|
|
Related commands |
|
|
|
Example code : Getting the current directory |
var
dir : string;
begin // Get the current directory
dir := GetCurrentDir;
WriteLn('Current directory = '+dir);
end;
|
Show full unit code |
Current directory = C:\Program Files\Borland\Delphi7\Projects
|
|