'GetWindowsDirectory'에 해당되는 글 1건

  1. 2007/08/25 How To Get Windows And System Directory
2007/08/25 09:34

How To Get Windows And System Directory

Get the name of the Windows and System directory used in your system


functionGetWinDir: String;
var
  dir: array [0..max_path] of char;
begin
 GetWindowsDirectory(dir, max_path);
 result:=StrPas(dir);
end;

functionGetSysDir: String;
var
  dir: array [0..max_path] of char;
begin
 GetSystemDirectory(dir, max_path);
 result:=StrPas(dir);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
 label1.caption:=GetWinDir;
 label2.caption:=GetSysDir;
end;

Trackback 0 Comment 0