Source Code



Find Temp Path of Windows

  • anonymous
  • Jan 16' 14
  • Delphi
  • 158
  • 213
  • United States

temp

 

this source to find path of temporary folder windows

 

unit main;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Buttons;

type
  TForm1 = class(TForm)
    BitBtn1: TBitBtn;
    Label1: TLabel;
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

function GetTempDirectory: String;
var
  TempDir: array[0..255] of Char;
begin
  GetTempPath(255, @TempDir);
  Result := StrPas(TempDir);
end;

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
  label1.Caption:=gettempdirectory;
end;

end.
  • Tags : temporary, windows
comments powered by Disqus

Related Code

Change Desktop Wallpaper Windows

Windows Ballon

Detect Aero Glass using Delphi

Retrive Windows Product Key

Check or Validate e-mail address

Disable/enable taskbar



Category

Tag Linked