Please enable JavaScript to view this site.

ESL Documentation

FILEIO Subroutine

Determine the temporary directory for the Current User.

 

call GetTempPath(Directory_SV)

Parameters

Directory_SV

A string which receives the full path of directory where the temporary files should be stored.

Description

This routine 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.

The routine does not verify that the path exists, nor does it test to see if the current process has any kind of access rights to the path.

Errors

FIO_E_UNKNOWN

The routine will only fail, if the local machine does not have any of the expected environment variables set.

See Also

GetTempFileName( ) subroutine.