@echo off
Set /p ext=Please enter the file type to search for (for example flv):
If Not EXIST .\%ext%\ md %ext%\
For /f "skip=4 tokens=1,2 delims=:" %%i in ('Reg Query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v cache') Do (
Set Driv=%%i&&Set Cache=%%j
)
Set Cache=%Driv:~-1%:%Cache%\Content.ie5\
For /f "delims=" %%i in ('dir /s /b "%Cache%\*.%ext%"') do (
Copy "%%i" .\%ext%\
)
Echo Copy complete!
Set /p flag=Do you want to clear the %ext% files in the temporary folder now?
If Not "%flag%"=="" goto :ClearTmp
Exit
:ClearTmp
del /f /s /q "%Cache%\*.%ext%"
Echo Clearing complete! Press any key to exit...
pause>nul
Recent Ratings for This Post
( 2 in total)
Click for details
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore