Use the GetTempPath method to retrieve the temp file path in a machine.
GetTempPath
Please note that it also varies from one operating system to other.
string tempFilePath = System.IO.Path.GetTempPath();
Visit the DevX Tip Bank