Skip to content

TP API: Temporary Path

TP API: Temporary Path

This API returns the Windows temporary path in SCREEN-ALPHA-FIELD (or SCREEN-AREA) or, if a file is passed in SCREEN-LITERAL, the file is returned with the Windows temporary path included.

For example, to simply get the temporary path:

MOVE "TP" TO SCREEN-PARAMETERS.
MOVE SPACES TO SCREEN-LITERAL.
PERFORM SCREEN-ROUTINE.

To add the temporary path to a filename:

MOVE "TP" TO SCREEN-PARAMETERS.
MOVE "WORKFILE.DAT" TO SCREEN-LITERAL.
PERFORM SCREEN-ROUTINE.

Note: The value is returned in different places, depending on the version of Elliott.

  • Prior to V8.5, the value is returned in SCREEN-ALPHA-FIELD.
  • For V8.5 and later, the value is returned in SCREEN-AREA.

JEG

Feedback and Knowledge Base