Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: temp directory

04 Nov 2010   #1
JasonY

Windows 7 Enterprise
 
 
temp directory


Question about new temp location for Windows 7 (C:\Users\isco202\AppData\Local\Temp)



This could be a problem for very often we use the %temp% folder in our scripts to put files there temporary. If no user logged on or we are distributing it via SMS, I wonder what is the %Temp% environment is defined?

Thanks
Jason



My System SpecsSystem Spec
04 Nov 2010   #2
mickey megabyte

ultimate 64 sp1
 
 

hi JasonY, welcome to sevenforums,

you can manually set the location in 'advanced system settings' - see below - is this what you mean?

it's something i've always set on a new windows install for a long time now, but i've always wondered about the difference between TEMP and TMP.


Attached Thumbnails
-here2.png  
My System SpecsSystem Spec
04 Nov 2010   #3
xarden

Windows 7 Enterprise
 
 

Quote   Quote: Originally Posted by mickey megabyte View Post
hi JasonY, welcome to sevenforums,

you can manually set the location in 'advanced system settings' - see below - is this what you mean?

it's something i've always set on a new windows install for a long time now, but i've always wondered about the difference between TEMP and TMP.
Theres no difference.
But it does mean you can have two temp locations (or as many as you want, for that matter), and its easy to recognise it as TEMP and TMP.

Also, following Mickey's guide, you can use the command prompt (start > run > cmd.exe)

1.) type: set
This will list all your environment variables and values.

2.) type: set temp
This will list just the temp variable and value.

3.) type: set temp "C:\temp"
This will SET the temp variable to C:\temp

Of course, you can replace temp with whatever variable in particular you're after, and set the variable to whatever you want.

Its probably best to use Mickey's way, as you can append (or prepend) values.
My way will replace it, which wouldn't be good if you wanted to add an extra location to PATH.
My System SpecsSystem Spec
04 Nov 2010   #4
JasonY

Windows 7 Enterprise
 
 

Thanks guys. I'm aware of HOW to change variables on a system. In fact, I would likely use Group Policy Preferences to set these if I need to. the question I'm really asking is the impact of the location and what kind affect the new location will have to my scripts. We have many many scripts and have used a global temp location in the past rather than a per user temp location. I guess I'll just have to start testing .. .
My System SpecsSystem Spec
04 Nov 2010   #5
xarden

Windows 7 Enterprise
 
 

Oh of course.
In that case, the only implication is that the directory will need read write access for all users.
My System SpecsSystem Spec
05 Nov 2010   #6
JasonY

Windows 7 Enterprise
 
 

Good point. thanks
My System SpecsSystem Spec
Reply

 temp directory




Thread Tools





Similar help and support threads
Thread Forum
What should Temp directory permissions be?
Hi Folks, I just solved a problem I had with the "send to -> compressed folder" functionality by adding ADMINISTRATORS to the permissions (full access) for the c:\users\username\local\appdata\temp directory. Prior to this, there were no permissions set for any users for that directory at all,...
General Discussion
Cannot change directory (CD) to a directory with space in the name
Following the directions outlined in http://www.sevenforums.com/general-discussion/144154-change-directory-command-prompt.html including enabling command extensions outlined in http://www.sevenforums.com/general-discussion/41993-command-line.html does not permit the CD command to change the...
General Discussion
Effects of moving TMP/TEMP directory & disable Pagefile on boot drive
I'm using Corsair SSD as Win7 x64 boot drive, and I moved both User & System Variables TMP/TEMP directory to a new common TMP directory in another hdd (Drive D) & also disabled pagefile on my boot drive (but enabled it for Drive D). Question is, what happens if I take off my hdd (Drive D:)...
Performance & Maintenance
Replace files in multiple directory, from a single directory
I have a 10 files that have all been categorised into about 40 folders. These files have been damaged. I have a backup of all these files, but they are not categorised and sit in a single directory. Does anyone know of an easy technique to batch replace the damaged files with the originals? ...
General Discussion
bios temp / real temp
hello can someone please tell me why my bios temp is 31C. and after booting to windows 7 real temp says 42c.? i'm using a E8400 chip and asus motherboard (p5q pro turbo) . what should the tjmax in real temp be set to i have it at 95 now . thanks for your help scrooge
PC Custom Builds and Overclocking
Removing files from "Temp" directory ?
Can I remove/delete the contents of the Temp folder in the following User directory: C:\Users\Tim\AppData\Local\Temp Seems to have an enormous amount of "temp" files...26.6 GB !? Thanks...TR
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App