Old 19th June 2007, 09:18   #1
51819
Member
 
Join Date: May 2007
Posts: 50
how to search and clean some files

how to search and clean "all Thumbs.db or *.tmp "
51819 is offline   Reply With Quote
Old 19th June 2007, 09:47   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I'd recommend using the Locate plugin.

Stu
Afrow UK is offline   Reply With Quote
Old 19th June 2007, 10:12   #3
51819
Member
 
Join Date: May 2007
Posts: 50
Quote:
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:
51819 is offline   Reply With Quote
Old 19th June 2007, 12:02   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 19th June 2007, 13:05   #5
51819
Member
 
Join Date: May 2007
Posts: 50
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:

Quote:
@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
51819 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump