[Reference] System.GetDir
Delphi
procedure GetDir(Drive: Byte; var S: String);
Properties
Type |
Visibility |
Source |
Unit |
Parent |
procedure |
public |
System.pas |
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:
현재 디렉토리를 반환합니다.
참고: GetDir은 S 매개 변수를 D 매개 변수로 지정된 드라이브의 현재 디렉터리로 설정합니다.
D는 다음 값 중 하나로 설정할 수 있습니다.
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.
참고: GetDir은 오류 검사를 수행하지 않습니다.
예를 들어, 유효하지 않은 값 5 (J)가 지정된 경우 S는 잘못된 드라이브의 루트 디렉토리인 것처럼 J:\를 반환합니다.
perform 미국식 [pər|fɔ:rm] 1. (일・과제・의무 등을) 행하다 |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.GetDir