- 4.67.2.34. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.34. GetDir procedure
4.67.2.34. GetDir procedure
Targets: MS-DOS, OS/2, Win32
System Unit
Returns the current directory of a specified drive.
Declaration:
procedure GetDir(D: Byte; var S: String);
where D is set to:
Drive | Value |
Default | 0 |
Drive A | 1 |
Drive B | 2 |
Drive C | 3 |
Remarks:
IOResult returns the error code if
an error occurred, otherwise it is set to zero.
GetCurDir performs the same function
as GetDir but it takes a null-terminated string
as an argument instead of a Pascal-style string.
- 4.67.2.34. -