How to get the windows temp path in C#

1 Answer

0 votes
using System;
using System.IO;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string tempPath = Path.GetTempPath();

            Console.WriteLine(tempPath);
        }
    }
}


/*
run:

C:\Users\user_name\AppData\Local\Temp\

*/

 



answered Mar 9, 2017 by avibootz
...