Name
GetDir Function
Syntax
procedure GetDir(Drive: Byte; var Directory: string);
Description
The GetDir
procedure stores in
Directory
the default directory for the drive
specified by Drive
. If Drive
is
1 (for A:) through 26 (for
Z:), GetDir
retrieves the
default directory for that drive. If the drive is not valid or if
Drive
is any other value,
GetDir
retrieves the default drive and directory.
The value stored in Directory
always begins with
the drive letter, e.g., X:\Directory
.
GetDir
is not a real
procedure.
See Also
ChDir Procedure, MkDir Procedure, RmDir Procedure |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.