FUNCTION GZipCompressString(lcString, lnCompressionLevel)LOCAL lcOutput, lcOutFile, lcInFile, lnHandle*** 1 - 9IFEMPTY(lnCompressionLevel) lnCompressionLevel = -1 && DefaultENDIF*** Must write to files<<b>>lcOutFile = SYS(2023) + SYS(2015) + TRANS(Application.ProcessId) + ".gz"<</b>> lcInFile = lcOutFile + ".in"
lcOutFile above is missing a backslash so only works when exe was run is an admin. It should be:
lcOutFile = ADDBS(SYS(2023)) + SYS(2015) + TRANS(Application.ProcessId) + ".gz"