for /f %%i in (mp3.txt) do xcopy /y /h "%%i" e:\笑笑备份
复制代码
-------------------------------------
MP3.txt:
C:\Documents and Settings\Administrator\桌面\2012最火铃声12首\2012最火铃声(10).mp3
C:\Documents and Settings\Administrator\桌面\2012最火铃声12首\2012最火铃声(11).mp3
C:\Documents and Settings\Administrator\桌面\2012最火铃声12首\2012最火铃声(12).mp3
C:\Documents and Settings\Administrator\桌面\2012最火铃声12首\2012最火铃声(1).mp3
@echo on
title 音频备份
if not exist e:\笑笑课程\ (
md e:\笑笑备份
)
if exist mp3.txt (
del /f /q mp3.txt
)
dir /s /b /a-d /a c:|findstr /i "2012最火铃声.*\.mp3$" >mp3.txt
for /f "delims=" %%i in (mp3.txt) do (
xcopy /y /h "%%i" e:\笑笑备份
)