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 165 views
1 answer 181 views
181 views asked Aug 17, 2018 by avibootz
1 answer 230 views
1 answer 121 views
121 views asked Jan 14, 2017 by avibootz
1 answer 122 views
122 views asked Jan 24, 2017 by avibootz
1 answer 145 views
...