Search results for 'Get Temporary Directory'. 2 post(s) found.

  1. 2009/09/03 Delphi API to get windows temporary directory
  2. 2007/09/20 Get Windows Temp directory
2009/09/03 16:07

Delphi API to get windows temporary directory


When you need to access windows temp directory, you can get from environment variables.
Following is the example to Get Temporary Directory.

var
  m_tempdir: string

.
.
.

  m_tempdir := GetEnvironmentVariable('TEMP');


Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.

2007/09/20 08:23

Get Windows Temp directory


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;
Trackback 3 Comment 0

Trackback : Cannot send a trackbact to this post.

  1. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 03:56 delete

    moneyideas

  2. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 12:58 delete

    moneyideas

  3. Subject different money making ideas

    Tracked from moneyideas 2010/01/31 16:40 delete

    moneyideas