GetEnvironmentVariable ("TEMP") without tilde (~)
1 answer
You can use Path.GetFullPath
to expand it:
If you pass in a short filename, it will be expanded to a long filename.
But ... it would be better to just use Path.GetTempPath
for this, t have to rely on environment variables to be correct.
+4
source to share