4,165
社区成员
发帖
与我相关
我的任务
分享
@echo off
title 获取GIF图片缓存
setlocal enabledelayedexpansion
REG export "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" Cache.reg
for /f "usebackq tokens=1,2 delims==" %%i in (`type Cache.reg`) do (
if %%i=="Cache" (
set tt=%%~j
echo !tt!
)
)
set TempDir=!tt!
rem \\Content.IE5
set DestDir=%USERPROFILE%\桌面\pkucnSignUp
md "!DestDir!"
cd /d "!TempDir!"
del /f /s /a /q *.gif
cls
color a
echo 可以打开网页获取验证码了...
echo 准备好了请继续。
echo ...
pause
cls
rem 超过多张未处理。
for /f "usebackq tokens=* delims=" %%i in (`dir /a /b /s *.gif`) do (
xcopy "%%i" "!DestDir!\验证码.gif"
)
echo .
echo .
echo 处理完毕!请检查是否在
echo !DestDir!
echo 中存在验证码图片。
pause
explorer.exe "!DestDir!"
setlocal enabledelayedexpansion
set t=0
c:
cd\
md Temp
md Photos
cd "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5"
for /f "usebackq tokens=2 delims=:" %%i in (`xcopy * c:\Temp /s /h`) do (
if exist c:\Photos\%%~nxi% (
xcopy c:\Temp\%%i c:\Photos\!t!-%%~nxi% /h
set /a t=!t!+1
) else (
xcopy c:\Temp\%%i c:\Photos\%%~nxi% /h
)
)
pause