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.

files in %temp%

Discussion in 'Windows XP' started by chasthur, 2006/12/30.

  1. 2006/12/30
    chasthur

    chasthur Inactive Thread Starter

    Joined:
    2006/12/19
    Messages:
    62
    Likes Received:
    0
    When I run>%temp% there are many files in there but they won't open. Popup says windows can't open them. Can I safely delete them and is there a way to delete the whole bunch at once if it is safe?

    Chas.
     
  2. 2006/12/30
    psaulm119 Lifetime Subscription

    psaulm119 Geek Member

    Joined:
    2003/12/07
    Messages:
    1,424
    Likes Received:
    21
    I know that Ccleaner (available here) can delete the temp files. I believe that it only does this for Temp files that are over 48 hours old, just to be on the safe side. I really can't imagine you needing something that in that folder, older than that--which is not to say that there isn't ever a need for older files, just that I don't know what that would be.:)

    I also like ccleaner because at the same time, it deletes a lot of other stuff, too, saving me quite a few clicks. I "m not sure if you can simply go into that folder, block out and delete the ones you don't want, but using ccleaner is a good, quick way to do this safely.
     

  3. to hide this advert.

  4. 2006/12/30
    chasthur

    chasthur Inactive Thread Starter

    Joined:
    2006/12/19
    Messages:
    62
    Likes Received:
    0
    ok....thanks psaul. There seems to be over 300 of them and they're all .tmp and all about 4kb so I found a way to send them all to the recycle bin with edit>mark all>delete. I'll leave them in the waste basket for awhile to see if my PC doesn't blow up. If not I'll empty them tomorrow.

    Chas.
     
  5. 2006/12/30
    psaulm119 Lifetime Subscription

    psaulm119 Geek Member

    Joined:
    2003/12/07
    Messages:
    1,424
    Likes Received:
    21
    Well let's hope your pc doesn't have an explosive new year's celebration!

    EDIT: I would assume that your response means that you haven't d/l and installed ccleaner. Pls keep in mind that if you run this program, it will clean out your recycle bin, regardless of the day it was put in. Just didn't want you doing anything that would ruin your plan.
     
  6. 2006/12/30
    Bill Castner

    Bill Castner Inactive

    Joined:
    2006/08/30
    Messages:
    1,980
    Likes Received:
    0
    Start, All Programs, Accessories, System Tools, Disk Cleanup

    Check the entries for temporary files, the temporary internet files, and other items you want cleaned. (Do not check to compress old files). Click More Options for additional items.

    It will remove safely what should be cleaned.
     
  7. 2006/12/31
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    I use a .CMD file to do my cleanup, it removes the entire directories as well. Note:
    Windows will auto create the removed dirs except it will NOT auto create the Temp dir, thus the MD command (make directory). Also, this will NOT work on XPHome because XPHome does not natively have the needed file called taskkill.exe. To make it usable in XPHome taskkill.exe can be copied from a XPPro installation and placed in the system32 folder of the XPHome installation. Paste the below in a text editor and saveas cleanup.cmd.
    Code:
    taskkill /f /im explorer.exe
    RD /S/q  "%UserProfile%\Local Settings\Temporary Internet Files "
    RD /S/q  "%UserProfile%\Cookies "
    RD /S/q  "%UserProfile%\Local Settings\History "
    RD /S/q  "%UserProfile%\Recent "
    RD /S/q   "%UserProfile%\Local Settings\Temp\ "
    MD  "%UserProfile%\Local Settings\Temp\ "
    pause
    start explorer.exe
     
  8. 2006/12/31
    Bill Castner

    Bill Castner Inactive

    Joined:
    2006/08/30
    Messages:
    1,980
    Likes Received:
    0
    Disk Cleanup can be automated through the Task Scheduler, or become batchable. For either of these you use the fact that it has a "SAGESET" and "SAGERUN" feature -- essentially stored collections of option choices that can be used on a command line evocation of Disk Cleanup.

    See:
    http://support.microsoft.com/kb/315246
    http://windowsxp.mvps.org/Automate.htm

    The SAGESET/SAGERUN features are available in all versions of XP.
     

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.