GetTempPath (Return TMP or TEMP environment path)

Top  Previous  Next

 

GETTEMPPATH( )

GETTEMPPATH Returns the name of the path specified by the Windows Environment variables

GETTEMPPATH is used to return the full path designated by the TMP or TEMP Windows Environment settings.GETTEMPPATH returns the first Environment setting it finds.

To add support for this utility to your existing applications, you need only include the CWUTIL.INC file in the Global Map section of your program:

INCLUDE('CWUTIL.INC'),ONCE

Return Data Type:     STRING

Example:

  GLO:TempPath = GETTEMPPATH( )   !return environment path