?
=?iso-8859-1?Q?Asbj=F8rn_Ulsberg?=
I just wonder if it's a simpler way to get the path to the current user's
temporary folder than this:
string path = Path.GetFullPath(Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.LocalApplicationData), "..\\Temp"));
It works, but is quite cumbersome. I also find it strange that
Path.Combine()
doesn't fix the '..\' part, so I need to use Path.GetFullPath() to have the
'..\' resolved (it walks down one directory from the '..\Local Settings\
Application Data' folder and gives '..\Local Settings').
temporary folder than this:
string path = Path.GetFullPath(Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.LocalApplicationData), "..\\Temp"));
It works, but is quite cumbersome. I also find it strange that
Path.Combine()
doesn't fix the '..\' part, so I need to use Path.GetFullPath() to have the
'..\' resolved (it walks down one directory from the '..\Local Settings\
Application Data' folder and gives '..\Local Settings').