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 D parameter. D can be set to any of the following values:

Value Drive

0

Default

1

A

2

B

3

C


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


See Also

Code Examples