Welcome to MSDN Blogs Sign in | Join | Help

How to: Change TFS temp folder?

TFS uses a temp folder to get files that you view. The location of that folder is %TMP%\TFSTemp. It’s not configurable via TFS, tf.exe, or Visual Studio. However, you can just set the TMP environment variable. Simply:

set TMP=D:\Temp
set TEMP=%TMP%
md %TMP%

Then you can starting using tf.exe afterwards and it will use the new %TMP%\TFSTemp instead, same thing with Visual Studio which can be started by running devenv.exe

If you want to change TFS temp folder on the server side too without changing the system temp folder, you have to have IIS7 installed; IIS7 loads user's profile by default for all application pools, including environment variables. Which means that the temp dir for the app pool is its user's temp dir, and you can change this value for that specific user only, not the system value.

Another temp folder on the server will be %TMP%\TFLogFiles. It’s used by TFS to log tracing info. This location is configurable in the global web.config, it’s an appSetting and its key is called traceDirectoryName.

Published Monday, April 13, 2009 11:18 PM by mohamedg
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# How to: Change TFS temp folder? | Coded Style

Monday, April 13, 2009 11:33 PM by How to: Change TFS temp folder? | Coded Style

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker