- @echo off
- set "FileList=A3测试.txt"
- set "FolderDst=F:\网络游戏\诛仙-422\422界面配置\422界面文件\tga"
- set "FileError=不存在.txt"
- type nul > "%FileError%"
- for /f "delims=" %%a in ('type "%FileList%"') do (
- if not exist "%%a\" (
- if exist "%%a" (
- xcopy /e "%%a" "%FolderDst%\%%~pa"
- ) else (
- >> "%FileError%" echo %%a
- )
- ) else (
- >> "%FileError%" echo 存在同名文件夹 %%a
- )
-
- )
- echo 完成
- pause
复制代码
|