No, not natively.
However, you can get around this with .....
Put it all together and you get a handy code snippit...
Thanks Clyde!
#Set ENVTmpDir equal to %TMP%
SET $Result = PutFile("c:\gsaktmp.bat","echo %TMP% > c:\gsaktmp.tmp")
IF Left($Result,7) = "*Error*"
Pause Msg="$Result"
Cancel
ENDIF
RUNPGM Pgm="c:\gsaktmp.bat" Wait=yes
SET $ENVTmpDir = GetFile("c:\gsaktmp.tmp")
IF Left($ENVTmpDir,7) = "*Error*"
Pause Msg="$ENVTmpDir"
Cancel
ENDIF
Pause Msg="$ENVTmpDir"