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

Related questions

1 answer 179 views
1 answer 191 views
191 views asked Aug 17, 2018 by avibootz
1 answer 240 views
1 answer 135 views
135 views asked Jan 14, 2017 by avibootz
1 answer 133 views
133 views asked Jan 24, 2017 by avibootz
1 answer 155 views
...