Previous: 4.67.2.33. FreeMem procedure To the Table of Contents Next: 4.67.2.35. GetLocaleStr function
4.67.2.33. FreeMem procedure Table of Contents 4.67.2.35. GetLocaleStr function

- 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 
Default0
Drive A1
Drive B2
Drive C3
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.


Previous: 4.67.2.33. FreeMem procedure To the Table of Contents Next: 4.67.2.35. GetLocaleStr function
4.67.2.33. FreeMem procedure Table of Contents 4.67.2.35. GetLocaleStr function

- 4.67.2.34. -