China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-11 07:58
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [fixed] Help with COPYING MP3 files from the Temporary Internet Files folder View 808 Replies 3
Original Poster Posted 2009-01-20 16:16 ·  中国 浙江 杭州 电信
高级用户
★★
Credits 537
Posts 219
Joined 2007-08-04 09:43
19-year member
UID 94620
Gender Male
From 杭州--半山
Status Offline
C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files
How can I copy the mp3 files inside it, for example COPY them to drive D:. Thanks!

[ Last edited by HAT on 2009-2-5 at 11:16 ]
Floor 2 Posted 2009-01-20 16:37 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline

@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
RaterScoreTime
junchen2 +8 2009-01-20 19:15
moniuming +9 2009-01-20 22:42
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 3 Posted 2009-01-21 14:50 ·  中国 广西 柳州 联通
新手上路
Credits 18
Posts 17
Joined 2008-11-15 12:59
17-year member
UID 131044
Gender Male
Status Offline
echo Extracting the specified cached files, please wait.........
for /f "delims=" %%i in ('dir /s /a-d /b "%userprofile%\locals~1\tempor~1\*.mp3"') do (
copy /y "%%i" "D:\"
) >nul
start explorer "D:\"
exit
Floor 4 Posted 2009-02-05 01:21 ·  中国 四川 凉山彝族自治州 电信
新手上路
Credits 16
Posts 17
Joined 2008-03-24 15:51
18-year member
UID 113872
Gender Male
Status Offline
Mm. This is very useful.. I'll keep it
Forum Jump: