2008
12.09

经常在网上冲浪的我们,肯定看过视频、听过歌曲,可是我们并没有主动下载他们,怎么实现了在线视听的效果呢?其实他们都已经下载到你的电脑里面了,只是它们都存储在一个特殊的地方——IE缓存;而本程序可以将IE缓存里指定类型的文件提取出来,由于vista和xp的IE缓存位置不一,所以两者的程序略有差别。

echo off
cls
echo 请选择要提取的文件类型
echo 1(swf) 2(flv) 3(jpg) 4(gif) 5(mp3) 6(mid) 7(其它类型)
set /p type=
if %type%==1 (set filetype=swf)
if %type%==2 (set filetype=flv)
if %type%==3 (set filetype=jpg)
if %type%==4 (set filetype=gif)
if %type%==5 (set filetype=mp3)
if %type%==6 (set filetype=mid)
if %type%==7 (echo 请输入文件类型,例如bmp
set /p filetype=)

:select_del_or_not
echo 提取后是否删除原文件?(y/n)
set /p delornot=
if %delornot%==y (goto startcopy)
if %delornot%==n (goto startcopy)
goto select_del_or_not
:startcopy
echo 正在提取文件,请稍候……
md %filetype%
for /f “delims=” %%i in (‘dir “%userprofile%\Local Settings\Temporary Internet Files\*.%filetype%” /s/b’) do copy /y “%%i” “%CD%\%filetype%\”

if %delornot%==y (for /f “delims=” %%i in (‘dir “%userprofile%\Local Settings\Temporary Internet Files\*.%filetype%” /s/b’) do del /f/q “%%i”)
pause

echo off
cls
echo 请选择要提取的文件类型
echo 1(swf) 2(flv) 3(jpg) 4(gif) 5(mp3) 6(mid) 7(其它类型)
set /p type=
if %type%==1 (set filetype=swf)
if %type%==2 (set filetype=flv)
if %type%==3 (set filetype=jpg)
if %type%==4 (set filetype=gif)
if %type%==5 (set filetype=mp3)
if %type%==6 (set filetype=mid)
if %type%==7 (echo 请输入文件类型,例如bmp
set /p filetype=)

:select_del_or_not
echo 提取后是否删除原文件?(y/n)
set /p delornot=
if %delornot%==y (goto startcopy)
if %delornot%==n (goto startcopy)
goto select_del_or_not
:startcopy
echo 正在提取文件,请稍候……
md %filetype%
for /f “delims=” %%i in (‘dir “%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.%filetype%” /s/b’) do copy /y “%%i” “%CD%\%filetype%\”

if %delornot%==y (for /f “delims=” %%i in (‘dir “%userprofile%\Local Settings\Temporary Internet Files\*.%filetype%” /s/b’) do del /f/q “%%i”)
pause

Ps:delims 是一行一行的取值,如果没有”delims”那么就取一行里第一个空格之前的内容。

:::FOR /f “delims=” %%a in ( ‘type %p333%\1.txt’ ) do dir /b “%%a”>>%p333%

:::dir “%userprofile%\Local Settings\Temporary Internet Files\*.swf” /s/b >1.txt

Close this notice

已有 87 个回复

添加回复
  1. comment6, accutane after before picture, adipex, pharmacy online tetracycline, zolpidem overseas, taking cialis and viagra together, rimonabant price sanofi, cheap viagra, meridia, winston cigarette coupon, antabuse, cialis 5 mg,

  2. tL06PO pyougmaqhhbc, [url=http://hdwamfyhmebl.com/]hdwamfyhmebl[/url], [link=http://wntifmnusdwb.com/]wntifmnusdwb[/link], http://lvecaqbxhzhp.com/

XHTML: 你可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>