Can I delete this...?

Discussion in 'OT Technology' started by ME, Jun 11, 2004.

  1. ME

    ME Guest

    i was wondering if i could delete all the files in the following...

    C:\Documents and Settings\Jim\Local Settings\Temp

    there's over 500megs+ in there and i am not sure if i can get rid of it or not - and if i do will my computer still work the same? like being able to get online and use IE, chat, download, etc... thanks in advance :)
     
  2. ilechoo.com

    ilechoo.com Guest

    What you want to do is this: just click start > press r, for run, and type "FORMAT C:" and you'll be all set.
     
  3. ilechoo.com

    ilechoo.com Guest

    ok, just kidding... but, you can clean that folder up..

    it's just your temp files folder.. I have it set so that it doesn't get filled up so much...
     
  4. ME

    ME Guest

    oh okay, thanks - i was about to do that haha :rofl: man would my face be red!
     
  5. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    i usually make a batch file to automate the cleanup process that includes:

    del c:\documents and settings\<profile name>\local settings\temp\*.tmp <c:\windows\y.txt

    and place it in the windows dir, create a file called y.txt in the same dir with:

    copy con y.txt
    y
    ^z

    you have to hit enter after the y. ^z is ctrl-z

    then place a shortcut to the batch file in c:\documents and settings\<profile name>\start menu\startup (i think that's the right path, but wherever the startup folder is)

    and it will automatically delete your .tmp files each time you login
     
  6. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    something wrong with the /q flag?
     
  7. Xadious

    Xadious =======

    Joined:
    Sep 16, 2002
    Messages:
    2,282
    Likes Received:
    0
    Location:
    UK
    Is that supposed to work even if you're already logged in and just double click the batch file? Cause thats what i did and it didn't work. Does it only work during login/computer start process? :dunno:
     
  8. Shaggy007

    Shaggy007 New Member

    Joined:
    Oct 22, 2003
    Messages:
    901
    Likes Received:
    0
    Location:
    In the Springtime of my youth
    You could just do
    del c:\documents and settings\<profile name>\local settings\temp\*.tmp /q /f

    the /q makes it run quiet, no prompting, the /f forces it to delete read only files.

    That way you don't have to make an extra file called y.txt
     
  9. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    :cool: only the fact that i didn't know about it :o
     
  10. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    should work anytime, as long as the .tmp files are not for running processes
     
  11. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    (And you replaced <profile name> with your profile name) :mamoru:
     
  12. austynn2001

    austynn2001 Guest

    why not tools-internet options-delete files?
     
  13. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    those are temporary internet files - not the system's temp directory. temporary internet files are just for your browser.
     
  14. Ximian

    Ximian New Member

    Joined:
    Mar 20, 2004
    Messages:
    1,860
    Likes Received:
    0
    Location:
    DCA
    Why not Disk Cleanup from Accessories - System Tools?
     
  15. ME

    ME Guest

    yea, those are different files - i already have it set that everytime i close my browser it deletes my internet temp files
     
  16. ME

    ME Guest

    thats for something else as well hehe
     
  17. Keyzs

    Keyzs OT Supporter

    Joined:
    Nov 3, 2003
    Messages:
    814
    Likes Received:
    0
    Location:
    Charlotte, MI
    The arrow is going the wrong direction. It should be >c: Redirect TO:

    Why waste the time? The file will be created when the command is run and will be over written every time it runs. (That leads to the question why you would create the file all together.) Oh and it would be easier for a Windows user to just right click and select create new text file.


    You did not take in consideration that the TMP files could be used by a running process? And along them lines why would you just delete the temp files in the temp folder? Its a temp folder and any file should be able to be deleted at boot. Only apps that leave files there are usually viruses, others clean up files from the system temp at shutdown - if they do a shutdown correctly.

    Actually its not for something else, its used to clean up temp files from the system. Granted it has the ability to delete many other files also, it maybe overkill for this use.
     
  18. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    no - you are passing the 'y' to the first command. try it.

    that is not part of the batch file - that was just to generate y.txt. as has been shown, using the /q flag makes that unnecessary.

    edit: as to creating a new text file, yes that would be fine as long as they are sure to add a carriage return after the y.

    it will delete what it can. this is not meant to be a complete solution, it just helps. and apps that terminate incorrectly due to user error or system hiccups, or are poorly written do not clean up behind themselves. haven't you ever seen a system with hundreds of .tmp files?
     
    Last edited: Jun 14, 2004
  19. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    If it's a running process, the files will simply not erase. And I agree, I've cleared out megabytes of non-virus data. Not every program is written as well as Windows...

    :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl:
     

Share This Page