temp directory


  1. Posts : 3
    Windows 7 Enterprise
       #1

    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 Computer


  2. Posts : 8,398
    ultimate 64 sp1
       #2

    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 Attached Thumbnails temp directory-here2.png  
      My Computer


  3. Posts : 966
    Windows 7 Enterprise
       #3

    mickey megabyte said:
    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 Computer


  4. Posts : 3
    Windows 7 Enterprise
    Thread Starter
       #4

    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 Computer


  5. Posts : 966
    Windows 7 Enterprise
       #5

    Oh of course.
    In that case, the only implication is that the directory will need read write access for all users.
      My Computer


  6. Posts : 3
    Windows 7 Enterprise
    Thread Starter
       #6

    Good point. thanks
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 14:46.
Find Us