티스토리 뷰
728x90
출처 : http://www.delphitricks.com/source-code/systeminfo/get_windows_system_temporary_directory.html
{ Getting the Temporary Directory } function GetTempDir: string; var Buffer: array[0..MAX_PATH] of Char; begin GetTempPath(SizeOf(Buffer) - 1, Buffer); Result := StrPas(Buffer); end; function GetTempPath: string; var TmpDir: PChar; begin TmpDir := StrAlloc(MAX_PATH); GetTempPath(TmpDir, MAX_PATH); Result := string(TmpDir); if Result[Length(Result)] <> '\' then Result := Result + '\'; StrDispose(TmpDir); end; function GetTempPath(var S: String): Boolean; var Len: Integer; begin Len := Windows.GetTempPath(0, nil); if Len > 0 then begin SetLength(S, Len); Len := Windows.GetTempPath(Len, PChar(S)); SetLength(S, Len); Result := Len > 0; end else Result := False; end;
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 지스타2007
- sas2009
- Xcode
- Delphi Tip
- oracle
- 송주경
- MySQL
- Spring MVC
- Linux
- Java
- ffmpeg
- NDK
- Spring
- KOBA
- Delphi
- 일본여행
- BPI-M4
- ubuntu
- koba2010
- 전예희
- Mac
- SAS
- 레이싱모델 익스트림 포토 페스티벌
- JavaScript
- flex
- 서울오토살롱
- android
- 튜닝쇼 2008
- 동경
- ble
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함