1. GetCurrentDir()
Returns the name of the current directory.
Unit : SysUtils
Category : file management routines
extern PACKAGE AnsiString __fastcall GetCurrentDir();
Description
GetCurrentDir returns the fully qualified name of the current directory.
2. ExtractFilePath(Application->ExeName)
Returns the drive and directory portions of a file name.
Unit : SysUtils
Category : file name utilities
extern PACKAGE AnsiString __fastcall ExtractFilePath(const AnsiString FileName);
Description
The resulting string is the leftmost characters of FileName, up to and including the colon or backslash that separates the path information from the name and extension. The resulting string is empty if FileName contains no drive and directory parts.
Note:This function works for multi-byte character systems (MBCS).
'Borland' 카테고리의 다른 글
XP, 2000에서 로그온된 사용자 이름 불러오기 (0) | 2008.03.04 |
---|---|
내문서, 바탕화면 Path 찾기 (31) | 2008.03.04 |
현재 디렉토리 구하기 (31) | 2008.03.04 |
비트연산을 이용한 곱셈, 뺄셈 (31) | 2008.02.26 |
비스타 ActiveX 만들기 (63) | 2008.02.14 |