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

  • Thread starter Orak Listalavostok
  • Start date
O

Orak Listalavostok

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"
 
H

H. Blackburn

I started writing a batch file for quick cleanup of an WinXP PC.
My batch file is below.
How can we improve this cleanpc.bat script?
Is another cleanpc.bat script out there that is better for starters?

There are probably no scripts out there for free
that you will ever find that clean up a PC of
privacy or security information.

So you're on your own as to what batch file to
write.

I'd suggest you add a removal step for the windows
files such as C:\Windows\Temp
C:\Windows\*.log
C:\Windows\*.prx
C:\Documents and Settings\Administrator\*
and if your autoexec contains sensitive information, add
C:\Autoexec.bat
C:\Pagefile.sys
and any other file with sensitive information.
 
G

granpaw

(e-mail address removed) (H. Blackburn) wrote in
snip
A feller called "wasup!" wrote a good one I've been using for a couple of
years now.
If you want to ask for it from him try this group or alt.binaries.freeware
(I think), or google for "wasup!".
It is a basic starting cleanup bat file that cleans all the IE crap and NS
(if you set it)even including the registry, it works like a charm....
cheers
granpaw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top