>How can I retrieve the path of Windows Temp folder? >
There is no "Windows" temp directory; Windows references the environment variable TEMP by default, so you can check the TEMP environment variable to find out where the currect temp directory is assigned.