System.GetDir

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetDir(Drive: Byte; var S: String);

Properties

Type Visibility Source Unit Parent
procedure public System.pas System System

Description

Returns the current directory.

Note: GetDir sets the S parameter to the current directory on the drive specified by the Drive parameter. Drive can be set to any of the following values in the table below.
Drive Value (S)

0

Default

1

A

2

B

3

C

Note: GetDir performs no error checking. For example, if the invalid value 5 (E) was specified, S would return E:\ as if it were the root directory of the invalid drive.

See Also

Code Examples