1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Temp file staying and growing

Discussion in 'Windows XP' started by Welshjim, 2004/09/09.

Thread Status:
Not open for further replies.
  1. 2004/09/09
    Welshjim

    Welshjim Inactive Thread Starter

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    I run DiskCleanup in C:\ Properties every few days. All of my Temp files are emptied except what I suspect is the main one
    C:\Documents and Settings\MyName\Local Settings\Temp
    Disk Cleanup shows zero bytes in Temporary Files, but that folder actually contains 35MB as of now. However, most of these files are not .tmp files, but run the gamut from .xml to .exe to .rtf. Some are several weeks old.
    The folder is growing. What is the best way to empty? Or should I leave these alone?
    I am the only user on this PC.
    P.S. One of the files in that folder is Patch.exe from Pocket Soft. I have no idea where it came from (or what a .exe file is doing in a Temp folder). The write up by Pocket Soft says
    "RTPatch is update and upgrade technology. It allows software developers to upgrade their code and data to reflect bug fixes, feature additions, and added information. RTPatch works at the byte level, so file type is a non-issue. It works equally on text, data or object code (executable files). The first portion of the RTPatch product is the RTPatch BUILD program:

    RTPatch BUILD compares old versions and new versions of files to create a single file containing only the minimum number of bytes necessary to convert the previous software version into the current version. This file is created at the byte level of each file using a patented algorithm. If an executable has only been slightly modified to correct a bug, for example, then only the bytes necessary to convert the old executable to the new executable will be incorporated into the patch file. No bytes are wasted by distributing information that is already contained in the old software version. "
    Not sure what that is all about. May be it came with SP2??
     
  2. 2004/09/09
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,315
    Likes Received:
    252
    I manually delete the contents of the folder from time to time.
     

  3. to hide this advert.

  4. 2004/09/09
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Me too.
     
    Newt,
    #3
  5. 2004/09/09
    maggie

    maggie Inactive

    Joined:
    2002/01/07
    Messages:
    420
    Likes Received:
    0
    EZArmor cleans them for me on my laptop. I just go to the temp select all in Edit and rightclick and delete. If that freaks you out it all ends up in the recycle bin.
     
  6. 2004/09/09
    WhitPhil

    WhitPhil Inactive

    Joined:
    2002/01/07
    Messages:
    599
    Likes Received:
    4
    Jim:

    That is your infamous TEMP folder.

    I have no idea why it isn't emptying.

    But you can do some of the following, if you wish.

    1. Change the location of the folder.

    My Computer, Properties, Advanced tab, Environmental Variables

    Then, if they are present , edit them or if not, add them

    TEMP=x:\{folder}
    TMP=x:\{folder}

    where x is the drive and {folder} is where you want the TEMP files to congregate. (create it before you make this change)

    2. Add a logon and/or logoff batch file to do some housecleaning.

    Start > Run > GPEDIT.msc > Computer Config &/or User Config > Scripts Logon/logoff
    (** and I'm not sure if GPEDIT is available on XP Home)

    Again, create these files first, in C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\St
    artup and/or C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Sh
    utDown and/or C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon


    For example, I have the following file located in each.

    HouseClean.bat

    which contains

    H:
    Del *.Tmp

    Cd\temp
    del *.tmp

    c:
    Cd\Windows\ "Internet logs "
    del tvdebug.log
    del fwpktlog.txt
    del *.tmp


    So, this tends to "houseclean" the \Temp folder and also deletes the two files the ZoneAlarm folder that grow forever.

    (The Del *.tmp commands could also be Del *.* to delete all files, not just the .TMP ones.)
     
  7. 2004/09/09
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    I got tired of individually deleting all the unnecessary files that get stuffed away in dark places so I created a batch file that remembers where they are and cleans them up for me. It has been handy and I add/subtract/alter it as the need arises. It's surprising how much junk can build up if you allow it!
    I call it tempzap.bat I'll share it but you will need to make changes to fit your needs and paths.

    Code:
    @ECHO OFF
    
    echo y | del  "C:\Documents and Settings\Owner\Recent\*.lnk" 
    echo y | del  "C:\Program Files\Grisoft\AVG6\UPDATE\*.* "
    echo y | del c:\windows\prefetch\*.* 
    echo y | rd/s  "C:\Documents and Settings\Owner\Local Settings\Temp\" 
    echo y | rd/s  "G:\Temporary Internet Files" 
    echo y | rd/s c:\temp\ 
    echo y | rd/s c:\windows\temp\ 
    md  "C:\Documents and Settings\Owner\Local Settings\Temp\" 
    md c:\temp 
    md c:\windows\temp 
    echo y | del c:\*.tmp /p /s 
    del c:\*.tmp /p /s /f /a:h 
    echo y | del  "C:\Program Files\MusicMatch\MusicMatch Jukebox\MMRadio\Cache\*.*" 
    echo y | del  "C:\Documents and Settings\Owner\Application Data\Lavasoft\Ad-Aware\Logs\*.*" 
    echo y | del  "C:\Documents and Settings\Owner\Application Data\Lavasoft\Ad-Aware\Quarantine\*.*" 
     
  8. 2004/09/09
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Start > Run > GPEDIT.msc > Computer Config &/or User Config > Scripts Logon/logoff
    (** and I'm not sure if GPEDIT is available on XP Home)


    Unfortunately is is not. And unlike several useful utilities that were left off of the Home version but will run if copied there, gpedit simply won't run from what I can read about it.
     
    Newt,
    #7
  9. 2004/09/10
    Welshjim

    Welshjim Inactive Thread Starter

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    Many thanks all.
    As WhitPhil knows from another board I just yesterday have finally found a .bat program that seems to do most of what I want.
    http://www.compu-docs.com/links.htm
    However, I will also try what surferdude2 has suggested.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.