AnsweredAssumed Answered

Is there a new temp path behaviour in ArcGIS 10.1?

Question asked by Fossi on Aug 21, 2012
Latest reply on Jul 6, 2016 by jon.morris

apparently since version 10.1 ArcMap creates its own temporary folder in the systems temp path. One folder for each ArMap-Process. The folders created look like this (where ...\Temp\ represents the systems temp path aka %temp%).


This itself would be no problem, but it looks like ArcMap also changes the systems %temp% environment variable for its process.

If an AddIn determines the temp path it no longer gets the systems path, but rather the temp-directory of the current ArcMap-process it was called from, eg. ...\Temp\arc27\ instead of ...\Temp\

c#-Snippet used in our AddIns:
string tempPath = System.IO.Path.GetTempPath();

Is there any way, to get the old behaviour back?

The new directory is not a problem but why must ArcMap dynamically change the %temp% environment variable?