Path: GetTempPath

GetTempPath

Returns the path to the temporary folder for the current user.



 Public Function GetTempPath ( ) As String

Return Values

String -  The path to the temporary folder, ending with a backslash.

Remarks

This method checks for the existence of environment variables in the following order and uses the first path found:

  1. The path specified by the TMP environment variable.
  2. The path specified by the TEMP environment variable.
  3. The path specified by the USERPROFILE environment variable.
  4. The Windows directory.

See Also

Project CorLib Overview

Class Path Overview