Archive: how to search and clean some files


how to search and clean some files
how to search and clean "all Thumbs.db or *.tmp "


I'd recommend using the Locate plugin.

Stu


Originally posted by Afrow UK
I'd recommend using the Locate plugin.

Stu
I had used,but it only seach $WINDIR. if "Thumbs.db or *.tmp" not in $windir.

I hope it not only seach %systemdrive% ,but also seach c:,d:,e:,f: ....z:

What made you think that?
http://nsis.sourceforge.net/Locate_plugin
You specify a path to search.

It is SearchPath that uses the SearchPath API to search system files.

Stu


I had read h ttp://nsis.sourceforge.net/Locate_plugin ,but i don't konw how to do .

please, see this bat.i want to DIY a soft as same as the bat can clean *.tmp,*._mp,.....

not only search c:\windows\*.tmp,*._mp...,but also seach d:,e:,f:,....z:

@echo off
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo. & pause