Deletion of TEMP-Files on NST

MathesMathes Member Posts: 21
edited 2015-10-02 in NAV Three Tier
Dear all,

are there any rules when a temp file on the NAV Server (created eg. via ServerTempFileName Function in Filemanagement codeunit) will be deleted automatically?




  • Options
    vaprogvaprog Member Posts: 1,128

    ServerTempFileName returns a filename with full path only. The file created with CREATETEMPFILE within that function will be deleted during CLOSE, or shortly after, by the operating system. It serves only to get a (most likely) unique filename.

    Any file you create, using that name ServerTempFileName returns, is just a regular file which happens to be located in the service user's TEMP path. I don't think that file will be deleted automatically anytime.
Sign In or Register to comment.