What is the directory “C:\Users\TEMP”?

3

1

I would like to know what the purpose of the directory C:\Users\TEMP in Windows 7 is. I am installing Aptana from the Admin account and it is trying to place files there, specifically, in C:\Users\TEMP\AppData\Local\Aptana

John Goche

Posted 2012-07-23T21:13:55.657

Reputation: 241

did you mean c:\users\USERNAME\Temp? – uSlackr – 2012-07-23T21:26:03.780

1There is no C:\Users\Temp folder, or at least there shouldn’t be unless you create a user named Temp. Unfortunately some programs are poorly written and put files in the wrong place (maybe a missing variable name or superfluous .., etc.) so it may have ended up in teh wrong place (though permissions should prevent that). – Synetech – 2012-07-23T21:27:09.713

2@uSlackr, even that would be an incorrect; it should have been put in AppData\Local (by default). – Synetech – 2012-07-23T21:28:37.900

I have Win7 and I don't have a C:\Users\TEMP directory. I don't think it's put there by windows. Perhaps it was Aptana that put it there. – MacAnthony – 2012-07-23T21:17:20.170

What else is in the directory? – Synetech – 2012-07-24T01:41:43.950

Answers

9

C:\Users\Temp means that a user has been logged on with a temporary profile. Generally, this means the user's real profile is missing or corrupted.

You can determine whether the folder contains a profile by examining its contents. If you see directories named Desktop, Documents (or My Documents), Pictures, etc., then it is a profile directory.

Given that Aptana wants to put files there while you are logged in as the Administrator, and the fact that C:\Users\Temp is usually deleted when the affected user logs off, my hunch is that the current user, Administrator, is logged on with the temporary profile. You can check this by opening a command prompt and typing set userprof. You should get a list of environment variables that includes USERPROFILE. If this value is set to C:\Users\Temp, it is indeed the current user who is afflicted.

Patrick Seymour

Posted 2012-07-23T21:13:55.657

Reputation: 7 662

In my case, comodo firewall is catching an edit from dllhost.exe to firefox, and if i dont allow it it wont let me delete the TEMP dir (maybe other reasons, since its a downgraded admin user), however that to me is pretty fishy. The only thing in there is a roaming FF prefs.js and search.json.mozlz4 . Im not big in introducing more problems, somehow these prefs are tied in it appears. – Brian Thomas – 2017-03-29T20:04:47.337

If a user’s profile is corrupt or there is not enough disk space, a “temporary” profile may indeed be created by copying the default-user profile. It may vary, but I have never seen it be created as C:\Users\Temp, but rather as something like C:\Users\<computername>.<username>, or something with the username in it. – Synetech – 2012-07-24T01:40:37.990

I created a new user, logged in an out, and moved the profile folder. When I logged back in, the temporary profile folder was indeed C:\Users\Temp. – Patrick Seymour – 2012-07-24T09:31:03.090

Really? That’s odd, XP’s method of using the username in the folder makes much more sense. Then again, a lot of Vista+’s changes have been poor. – Synetech – 2012-07-24T15:23:39.167

I think if you have a user named Temp, and they get a temporary profile, the computer explodes. – Patrick Seymour – 2012-07-24T17:20:52.373

3

Look at what's in the directory. If you aren't familiar with it, compress the directory using 7zip and rename the whole thing (to back it up). Then delete the original directory. If nothing happens, run with it for a while. When YOU are convinced that the directory had no value, delete the backup you made with 7zip.

If you compress and rename the backup you create, and all heck breaks loose, reboot Windows in safe mode, and put everything back like it was.

This will help you determine if it is needed, and if not, helps you safely get rid of it.

ANY program could have made that TEMP directory.

Everett

Posted 2012-07-23T21:13:55.657

Reputation: 5 425