README.md

December 5, 2022 ยท View on GitHub

GetDir

Description

GetDir will return the current directory for a specified drive.

More Info

0=default, 1=a, 2=b, 3=c

Submitted On
ByN/A
LevelBeginner
User Rating5.0 (10 globes from 2 users)
CompatibilityDelphi 5, Delphi 4, Pre Delphi 4
CategoryFiles/ File Controls/ Input/ Output
WorldDelphi
Archive File

Source Code

procedure TForm1.Button1Click(Sender: TObject);
var S : String;
begin
  GetDir(0, S);
  Label1.Caption := 'The current drive and directory are: ' + S;
end;