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.

Fred Langa Cleanup.Bat

Discussion in 'Legacy Windows' started by hollinm, 2004/03/26.

Thread Status:
Not open for further replies.
  1. 2004/03/26
    hollinm

    hollinm Inactive Thread Starter

    Joined:
    2002/11/26
    Messages:
    126
    Likes Received:
    0
    att: scotrw

    Back on March 21, 2004 you told me about Fred Langa's Cleanup.Bat program for eliminating temp. files etc.
    I did go to his web page and downloaded the program into my C:\drive.
    I also downloaded the registry key to add to my recycle bin as suggested on the website.
    Since I am not familiar with the program and how it should act when running it I have a couple of questions:
    when I right click on it in the recycle bin, the black dialog box comes up warning to read( via notepad) the info and if you are satisfied it will work on your system, press any key. I do that, something goes by quickly and then dialog box says exit windows desktop. At this point I usually close it. Yet I go thru the temp files and they appear to be still there. Can you confirm this is the way it is suppose to work?

    Back on March 21st you showed me what you have in your Clean.bat file. Can I add those things you have on yours and are not included in Langa's cleanup.bat file, to his program?
    You used smartdrv @ECHO OFF and then begin listing the programs. Not all of these are included in Langas but there are others he has that you don't. Here is what is included in his program:

    @rem The first group of lines clears the screen and displays program information
    @cls
    @echo Fred Langa's Cleanup.Bat, a Win98 hard-disk cleanup tool.
    @echo ---------------------------------------------------------
    @echo Copyright (c) 2002 Langa Consulting
    @echo http://www.langa.com
    @echo ---------------------------------------------------------
    @echo Use Notepad to view file contents before running!
    @echo In reading the file, you'll see every command that
    @echo will be issued and acted on. If you see anything
    @echo that should NOT be done on or to your system/files,
    @echo delete that line. This file is known to work fine as-is on
    @echo standard Windows98 setups, but only you can determine
    @echo if it's OK to run on *your specific* setup.
    @echo See http://www.langa.com/cleanup_bat.htm
    @echo for precaution/usage info and for newer versions.
    @echo -----------
    @rem This file is offered as-is and without warranty of any kind.
    @rem This file may be redistributed as long as this header
    @rem information is retained in the final file.
    @rem DO NOT PROCEED until and unless you have read the precaution/usage
    @rem info and checked for newer versions at http://www.langa.com/cleanup_bat.htm
    :: Please also note the COMMON SENSE PRECAUTIONS and legal information here:
    :: http://www.langa.com/legal.htm . The information on that page is included
    :: in this file by reference; and your use of this file indicates your acceptance
    :: of responsibility for the use of this file.
    @echo This batch file aggressively cleans up all Temp/Tmp files in standard
    @echo Windows locations. Note: all other apps should be closed before running this.
    @echo ---------------------------------------------------------
    @echo If you haven't followed the instructions above, hit ctrl-c to abort; otherwise
    @pause
    rem The next line wipes out the entire temp directory(ies), if it(they) exists
    deltree /y c:\windows\temp\
    deltree /y c:\temp\
    deltree /y c:\windows\tmp\
    deltree /y c:\tmp\
    rem Next set of "del" lines deletes possibly-large "orphan" files that sometimes
    rem get placed inappropriately in the "temporary internet files" (TIF) directory.
    rem Note: it does NOT clean out files that actually belong in the TIF.
    del c:\windows\tempor~1\*.zip
    del c:\windows\tempor~1\*.exe
    del c:\windows\tempor~1\*.gif
    del c:\windows\tempor~1\*.jpg
    del c:\windows\tempor~1\*.mov
    del c:\windows\tempor~1\*.qt
    del c:\windows\tempor~1\*.png
    del c:\windows\tempor~1\*.bmp
    del c:\windows\tempor~1\*.avi
    del c:\windows\tempor~1\*.mpg
    del c:\windows\tempor~1\*.mpeg
    del c:\windows\tempor~1\*.ra
    del c:\windows\tempor~1\*.ram
    del c:\windows\tempor~1\*.mp3
    del c:\windows\tempor~1\*.asf
    rem Next line kills garbage files that Office leaves behind in c:\windows
    del c:\windows\ff*.tmp
    rem next line erases the icon cache, saving some resources on restart
    deltree /y c:\windows\ShellIconCache
    cls
    exit
    rem For best results, reboot after running this file.

    I want to make my cleanup of temp files etc. as comprehensive as I can. Can you give me your help?
     
  2. 2004/03/28
    scotrw

    scotrw Inactive

    Joined:
    2004/03/20
    Messages:
    4
    Likes Received:
    0
    Fred Langa

    Hollinm,
    I suggested Fred Langa's Cleanup. bat, because at the beginning you were trying to get rid of temp files & I had found this bat file to be very good. But I would suggest that you d/l all the articles from Fred's letters on this subject then you would be able to customize it to suit your own machine, this is why my file is different to the 1 you d/l, you will gain some knowledge on the workings of DOS & what Mark & Goddez were having you do,
    Bob
     

  3. to hide this advert.

  4. 2004/03/28
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    The main difference between this BAT file and my commands in your other post is this. Mine deletes the entire folders, getting of the two files below in the process and extra folders that may exist connected to them in respect to the Cookies, History and TempIE folders.
    There are two files, named Index.Dat and Desktop.Ini that exists in the Cookies, History and Temp IE folders. These files get larger the longer they exist.
    The Index.Dat in the cookies folder keeps track of the cookies that exist and no longer exists. The only way to clean it out is to delete it.
    The Index.Dat in the History folder keep track of the files in the History folder. The only way to clean it out is to delete it.
    Desktop.Ini and Index.Dat in the TempIE folders does basically the same thing.
    This BAT file you posted here do nothing to delete these files, and it does not delete the extra folders in the TempIE folders. Usually there are 4 subfolders there with random names.
     
  5. 2004/03/28
    hollinm

    hollinm Inactive Thread Starter

    Joined:
    2002/11/26
    Messages:
    126
    Likes Received:
    0
    Att: scottrw

    Can I add all of the commands you have into the Langa cleanup.bat file so that I can clean out as much as possible?
    In other words I would retain those files that Langa has and add those that you have but which are not included in the Langa version (via notepad). What do you think?
     
  6. 2004/04/01
    hollinm

    hollinm Inactive Thread Starter

    Joined:
    2002/11/26
    Messages:
    126
    Likes Received:
    0
    Cleanup.bat

    att: scotrw

    Would you mind responding to my last link. Thanks very much
     
  7. 2004/04/01
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    In case you do not get an answer, yes, you can do that.
     
  8. 2004/04/01
    scotrw

    scotrw Inactive

    Joined:
    2004/03/20
    Messages:
    4
    Likes Received:
    0
    Holinm, as Mark said you can do it . I dont check this forum everyday, sorry for the delay,
    Bob
     
  9. 2004/04/01
    hollinm

    hollinm Inactive Thread Starter

    Joined:
    2002/11/26
    Messages:
    126
    Likes Received:
    0
    Cleanup.bat

    att: markp62 and scotrw

    Thank you. I took a chance and added them to cleanup.bat. It seems to work. The worse that could have happened is I would have to delete the old and download a fresh cleanup.bat. However, it seems to be working and both of you have confirmed that I could add scotrw files without a problem. Thanks to both of you for reponding.:D
     
  10. 2004/04/02
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    hollinm,

    good show
     
    Last edited: 2004/04/02
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.