System.GetDir
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
Sparameter to the current directory on the drive specified by theDparameter.Dcan 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,
Swould return J:\ as if it was the root directory of the invalid drive.