TP API: Temporary Path

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



    • Related Articles

    • Programming API Codes

      This document is provided for Elliott software developers. If you are not an Elliott software developer, this document is not meaningful for you. AP: Get SMA Values This API returns various values from the Shared Memory Area. For example: Move ‘AP’ ...
    • PA API (8.5)

      PA: Profile Access This API can be used to retrieve or update an individual field from a configuration file such as EL850S.CFG or EL850U.CFG. Screen Parameters: PA,FN,Section Input: FN = RD to read, UP to update Section = Configuration file section ...
    • LF API

      Release Date: 9/7/2021 Versions: 8.0 and higher This API takes a filespec, like C:\WINDOWS\*.*, and returns the next file in the specified directory for each successive call. Screen Parameters Comment LF,nn Input: SCREEN-LITERAL contains the ...
    • AP API

      AP API This API returns various values from the Shared Memory Area. For example: MOVE "AP" TO SCREEN-PARAMETERS MOVE "EDITOR" TO SCREEN-LITERAL PERFORM SCREEN-ROUTINE This returns the user’s preferred Editor in SCREEN-ALPHA-FIELD. The following ...
    • Fail to Copy Elliott to Local Path & Create Desktop Icon

      Release Date: 09/12/2024 Version: 8.5 & Up Q - One user is running Elliott 8.5 right now. I tried to upgrade this workstation to Elliott 8.6. So I navigated to the <ElliottRoot>\Bin86 folder and execute EL860.EXE. I received the following message: ...