Узнать директорию Cookie

{codecitation class="brush: pascal; gutter: false;" width="600px"}

uses
Registry;

function GetDirectory: string;
var
reg : TRegistry;
begin
reg := TRegistry.Create;
try
reg.RootKey := HKEY_LOCAL_MACHINE;
reg.OpenKey(‘SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Special Paths\Cookies’,
False);
Result := reg.ReadString(‘Directory’);
finally
reg.Free;
end;
end;

//пример использования
procedure TForm1.Button1Click(Sender : TObject);
var
s : string;
begin
S := GetDirectory;
ShowMessage(GetDirectory);
end;{/codecitation}
 

Добавить комментарий