Anybody have an idea to get the windows temp directory ?
Windows TEMP
BlitzMax Forums/BlitzMax Programming/Windows TEMP Local MyTempFolder:String = getenv_("TEMP")
Many thanks Ziggy !
Hey! in some windows version the TEMP folder is defined by a veriable called TMP instead of TEMP, so you should do something like:
Function GetTempFolder:String()
Local Aux:String = getenv_("TEMP")
If Aux = "" Then Aux = getenv_("TMP")
Return Aux
End Function
Function GetTempFolder:String()
Local Aux:String = getenv_("TEMP")
If Aux = "" Then Aux = getenv_("TMP")
Return Aux
End Function