.NET get local temp directory accessible to all users

As indicated in the header, how can I get the temp directory accessible to all users.

Path.GetTempPath() returns the temp directory for the current user.

+7
source share
1 answer
 Environment.ExpandEnvironmentVariables(@"%SystemRoot%\Temp"); 

Remember that temporary directories pose a significant potential security risk, as they can be used to attack other users by decomposing shared data.

+5
source

All Articles