In a .Net winforms application, how do I get the path to the current temporary user folder?

It seems so, I can’t believe I don’t know this! I just need a folder from scratch to dump temporary files. I do not care if it is destroyed between customs or not, and I do not think that I will need to overcome the difficulties of creating one and maintain it from my application. Is it too much to ask?

+4
source share
3 answers

Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData) or Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData)

+5
source

This is for VB.NET

 My.Computer.FileSystem.SpecialDirectories.Temp 

not sure in c #

+3
source

Source: https://habr.com/ru/post/1277121/


All Articles