batch and script files

Discussion in 'other software & services' started by hossie, Apr 9, 2009.

Thread Status:
Not open for further replies.
  1. hossie

    hossie Registered Member

    Joined:
    Nov 8, 2005
    Posts:
    88
    Hi Guys

    I am looking for some batch or script files with which I can do some manitenance job like disk defragment , cleaning tmp files , changing system settings. If any one you have a collection of files, please send it to me.
     
  2. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    Hello,
    what OS do you run?
     
  3. hossie

    hossie Registered Member

    Joined:
    Nov 8, 2005
    Posts:
    88
    Looking for Windows XP
     
  4. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    if you save the following as a batch file it will clean temporary files for you:

    cls
    deltree /y C:\temp\*.*
    deltree /y %windir%\temp\*.*
    deltree /y "%windir%\system32\config\systemprofile\cookies\*.*"
    deltree /y "%windir%\SYSTEM32\config\systemprofile\Local Settings\History\History.IE5\*.*"
    deltree /y "%windir%\SYSTEM32\config\systemprofile\Local Settings\Temporary Internet Files\*.*"
    deltree /y "%windir%\SYSTEM32\config\systemprofile\Local Settings\Temp\*.*"
    deltree /y "C:\Documents and Settings\Default User\Local Settings\Temporary Internet Files\Content.IE5\*.*"
    deltree /y "C:\Documents and Settings\Default User\Local Settings\History\History.IE5\*.*"

    deltree /y "%homepath%\Cookies\*.*"
    deltree /y "%homepath%\recent\*.*"
    deltree /y "%homepath%\Local Settings\cookies\*.*"
    deltree /y "%homepath%\userdata\*.*"
    deltree /y "%homepath%\Local Settings\History\*.*"
    deltree /y "%homepath%\Local Settings\Temp\*.*"
    deltree /y "%homepath%\Local Settings\History\Temporary Internet Files\Content.IE5\*.*"
    deltree /y "%homepath%\Local Settings\Temporary Internet Files\Content.IE5\*.*"

    deltree /y "C:\Documents and Settings\NetworkService\Cookies\*.*"
    deltree /y "C:\Documents and Settings\NetworkService\Local Settings\History\History.IE5\*.*"
    deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temp\*.*"
    deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files\Content.IE5\*.*"

    deltree /y "C:\Documents and Settings\LocalService\Local Settings\History\History.IE5\*.*"
    deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5\*.*"
    deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temp\*.*"
    deltree /y "C:\Documents and Settings\LocalService\Cookies\*.*"

    deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temp\*.*"
    deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*"
    deltree /y "C:\Documents and Settings\Administrator\Local Settings\History\*.*"
    deltree /y "C:\Documents and Settings\Administrator\Cookies\*.*"
     
  5. majoMo

    majoMo Registered Member

    Joined:
    Aug 31, 2007
    Posts:
    938
    The command "deltree" isn't used in Win XP (Vista also perhaps). It was used by Win 98.

    To use it you need download the file "deltree.exe".
     
  6. axial

    axial Registered Member

    Joined:
    Jun 27, 2007
    Posts:
    477
Loading...
Thread Status:
Not open for further replies.