I need to get a %TEMP% environmental variable value string in Windows platform.
If I try to use any methods(C / C++) (getenv (), …) to get this environmental variable, it returns with “~” in that string.
For Example: C:\DOCUME~1\pkp\LOCALS~1\Temp.
But I need to get full string for some reasons, as below:
C:\Documents and Settings\pkp\Local Settings\Temp
If anyone knows any methodology to obtain this, please let me know.