Finding Windows Temp Folder with Delphi
Delphi ile Windows Temp Folder bulma
function GetTempDirectory: String;
var
tempFolder: array[0..MAX_PATH] of Char;
begin
GetTempPath(MAX_PATH, @tempFolder);
result := StrPas(tempFolder);
end;
var
tempFolder: array[0..MAX_PATH] of Char;
begin
GetTempPath(MAX_PATH, @tempFolder);
result := StrPas(tempFolder);
end;
veya
t := GetEnvironmentVariable('TEMP');
şeklinde bulunabilir.