Identifying a folder for temporary files -- %TEMP% or something else?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I am looking for a method to identify a folder where temporary
files can be written and later erased. Ideally this method will
work for Win98, Win2k, and WinXP, but if it only works for
Win2k and WinXP that is OK. If it only works for WinXP that
is problematic.

My WinXP box has environment variables %TMP% and %TEMP%,
and these name a folder Temp under "Local Settings" in my user
folder. That's great, but can I assume that %TMP% or %TEMP%
will be set up accordingly on all WinXP installations?
What at Win2k and Win98?

%TEMP% and/or %TMP% will work fine if I can count on those
variables existing and naming a valid, writeable folder.

Thanks for any comments.

Robert Dodier

.



Relevant Pages

  • Re: Spyware or malware problem
    ... That is why you must really look at the %TEMP% and/or %TMP% environmental variables to look ... Then WinXP will be using c:\winnt rather than c:\windows. ... My XP Home definitely has a C:\windows\temp folder. ...
    (microsoft.public.security.virus)
  • Re: Spyware or malware problem
    ... Win2K and WinXP use TEMP directories in the user profile. ... In addition, the %windir%\temp folder exists ...
    (microsoft.public.security.virus)
  • Re: AS 3.8 Not Appear on Computer
    ... I took your advice and emptied the "temp" folder, but that did not solve the ... I notice that when I shut WinXP down the installation process for AS begins. ...
    (microsoft.public.pocketpc.activesync)
  • Re: Identifying a folder for temporary files -- %TEMP% or something else?
    ... Win2k and WinXP that is OK. ... and these name a folder Temp under "Local Settings" in my user folder. ... Environment variables can be renamed or deleted, so you should still check to make sure it has a valid value before using it. ...
    (microsoft.public.windowsxp.general)
  • Files in Temp
    ... I have two computers with WinXP, both Dell. ... Both have files in the Temp ... Folder that are always there. ...
    (microsoft.public.windowsxp.general)