Search results for 'Get Temporary Directory'. 2 post(s) found.
- 2009/09/03 Delphi API to get windows temporary directory
- 2007/09/20 Get Windows Temp 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');
m_tempdir: string
.
.
.
m_tempdir := GetEnvironmentVariable('TEMP');
Another posts included in "Delphi"
| How to print external document ? (0) | 2009/09/09 |
| How to launch application ? (0) | 2009/09/09 |
| Is there directory selection VCL component in Delphi ? (0) | 2009/09/09 |
| Delphi API to get the current working directory (0) | 2009/09/03 |
| How to resize PNG file in Delphi ? (0) | 2009/09/03 |
| Get the length of arrays and a string (0) | 2009/08/22 |
| Delphi Pointer Types (0) | 2009/08/22 |
| How to read/wrtie INI file in Delphi ? (0) | 2009/08/21 |
Trackback : Cannot send a trackbact to this post.
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;
lng: DWORD;
thePath: string;
begin
SetLength(thePath, MAX_PATH) ;
lng := GetTempPath(MAX_PATH, PChar(thePath)) ;
SetLength(thePath, lng) ;
end;
Another posts included in "Delphi"
| How to Get Windows OS Version ? (0) | 2007/09/20 |
| How to Get Filenames from Clipboard ? (0) | 2007/09/20 |
| Get system info (free memory, etc) (0) | 2007/09/20 |
| Disable ALT+TAB, CTRL+ESC, CTRL+ALT+DEL (0) | 2007/09/19 |
| Display Standard Windows Properties dialog (0) | 2007/09/19 |
| Disable Mouse and Keyboard from Delphi Code (0) | 2007/09/19 |
| Detecting Drive Types (0) | 2007/09/19 |
| Detecting and preventing Windows shut down (0) | 2007/09/19 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 03:56
moneyideas
-
Subject different money making ideas
2010/01/29 12:58
moneyideas
-
Subject different money making ideas
2010/01/31 16:40
moneyideas

Prev

Rss Feed