The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GetTempDir


Unit: SDL_filesys
Class: none
Declaration: function GetTempDir: string;

The function GetTempDir returns the temporary file path which is obtained as follows: primarily the path specified by the TMP environment variable is returned. If TMP is undefined, the path specified by the TEMP environment variable is returned. If both the TMP and the TEMP are undefined, the current directory is returned.

Hint: Please note that GetTempDir will return long path names only under Delphi 2010 or later.



Last Update: 2014-Oct-04