What is this batch file missing (for privacy cleaning of a windows PC)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Orak Listalavostok (oraklistal_at_yahoo.com)
Date: 11/02/04


Date: 2 Nov 2004 01:36:22 -0800

I started writing a batch file for quick cleanup of an WinXP PC.
My batch file is below.
I'm no expert so I am sure stuff is missing (what is missing)?
The goal is a decent batch file which removes most privacy concerns.
Let's say the PC should be clean enough to hand to your boss or mom.
How can we improve this cleanpc.bat script?
Is another cleanpc.bat script out there that is better for starters?
How can we add variables (eg for the username & mozzilla directory)?

Orak Listalavostok

echo off
erase /s/q/f "c:\temp"
erase /s/q/f "c:\documents and settings\administrator\recent"
erase /s/q/f "c:\documents and settings\administrator\my recent
documents"
erase /s/q/f "c:\documents and settings\administrator\local
settings\my recent documents"
rmdir /s/q "c:\quarantine"
erase /s/q/f "c:\windows\downloaded program files"
erase /s/q/f "c:\windows\temp"
erase /s/q/f "c:\windows\cookies"
erase /s/q/f "c:\windows\history"
erase /s/q/f "c:\windows\tempor~1\content.ie5"
erase /s/q/f "c:\windows\recent"
erase /s/q/f "c:\windows\applog"
erase /s/q/f "c:\windows\desktop\*.tmp"
erase /s/q/f "c:\windows\prefetch\*.*"
erase /s/q/f "c:\documents and settings\administrator\cookies"
erase /s/q/f "c:\documents and settings\administrator\local
settings\history"
erase /s/q/f "c:\documents and settings\administrator\local
settings\temp"
erase /s/q/f "c:\documents and settings\administrator\local
settings\temporary internet files"
erase /s/q/f "c:\documents and settings\administrator\local
settings\application data"
erase /s/q/f "c:\documents and settings\administrator\userdata"
erase /s/q/f "c:\documents and settings\administrator\my recent
documents"
erase /s/q/f "c:\windows\system32\catroot2\*.log"
erase /s/q/f "c:\documents and Settings\administrator\application
data\mozilla\Profiles\default\mhy0feee.slt\cache"
erase /s/q/f "c:\documents and Settings\administrator\application
data\mozilla\Profiles\default\\mhy0feee.slt\cache.Trash"
erase /s/q/f "c:\documents and Settings\administrator\application
data\mozilla\Profiles\default\mhy0feee.slt\cookies.txt"
erase /s/q/f "c:\documents and settings\administrator\application
data\mozilla\Profiles\default\mhy0feee.slt\downloads.rdf"
erase /s/q/f "c:\documents and settings\administrator\application
data\mozilla\Profiles\default\mhy0feee.slt\history.dat"
erase /s/q/f "c:\documents and settings\administrator\application
data\mozilla\Profiles\default\mhy0feee.slt\bookmarks.html"
erase /s/q/f "c:\windows\debug\usermode\userenv.log"
erase /s/q/f "c:\windows\debug\usermode\userenv.bak"



Relevant Pages

  • What is this batch file missing (for privacy cleaning of a windows PC)
    ... I started writing a batch file for quick cleanup of an WinXP PC. ... I'm no expert so I am sure stuff is missing? ... Is another cleanpc.bat script out there that is better for starters? ...
    (microsoft.public.security)
  • Re: xp_cmdshell default path (system32) problem
    ... You can query variables to extract paths and filenames etc Lookup HELP FOR at a command prompt and page through. ... My process actually uses information for tables to determine which directories and files should actually be moved and deleted, so a static batch file wouldn't work. ... building a batch file in code and then xp_cmdshell to execute it might be a safer approach than executing the erase commands directly from xp_cmdshell. ...
    (microsoft.public.sqlserver.programming)
  • Help us create a batch file to clean a pc of stuff (hand computer to mom)
    ... I started writing a batch file for quick cleanup of an WinXP PC. ... I'm no expert so I am sure stuff is missing? ... Is another cleanpc.bat script out there that is better for starters? ...
    (microsoft.public.windowsxp.basics)
  • Need help writing batch/script file
    ... I have a batch file that will erase the contents of both browsers cache as ... well as the trash directory from my users desktop...I was wondering if ...
    (alt.linux)
  • Plz Help: changing batch file to a VBscript.
    ... old batch files to a script to run with WSH. ... what web site would you recommend for learning how to write ... erase d:\dates\fakes ...
    (microsoft.public.scripting.wsh)