1. Home
  2. Computing & Technology
  3. Delphi Programming

Get Windows Temp directory

By , About.com Guide

thePath holds the Windows Temp directory:

~~~~~~~~~~~~~~~~~~~~~~~~~
var
   lng: DWORD;
   thePath: string;
begin
  SetLength(thePath, MAX_PATH) ;
  lng := GetTempPath(MAX_PATH, PChar(thePath)) ;
  SetLength(thePath, lng) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Form gradient fill
« How to set margins in Memo

Explore Delphi Programming
About.com Special Features

Reader's Choice Award Winners

What are the best instant messengers, apps, editors and more? You told us, for our 2010 technology awards program. More >

iPad Central

Is Apple's new tablet computer impractical, a must-have -- or both? We'll help you figure it out. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Using VCL Components
  5. TImage
  6. Get Windows Temp directory

©2010 About.com, a part of The New York Times Company.

All rights reserved.