一个简单的批处理bat问题

2025-01-06 15:53:12
推荐回答(2个)
回答1:

@echo off
for /f "delims==" %%m in ('dir /b /s "e:\*.mp3" "e:\*.wav"') do (dir /b /s "i:\*.mp3" "i:\*.wav" | find /i "%%~nm" || copy "%%m" "i:\")
echo 歌曲拷贝完毕 ,按任意键结束。
pause>nul

回答2:

@echo off
For /r e:\ %%i in (*.mp3 *.wav) do copy /y "%%i" "i:\"
pause