本帖最后由 flashercs 于 2022-6-15 16:00 编辑
- @echo off
-
- set 源路径=C:\Users\Administrator\Desktop\测试
-
- set 目标路径=C:\Users\Administrator\Desktop\分类
-
- for /f "delims=" %%a in (文件名.txt) do (
-
- for /f "tokens=3 delims=-" %%b in ("%%a") do (
- md "%目标路径%\%%b\%%a" 2>nul
- xcopy "C:\Users\Administrator\Desktop\测试\%%a" "%目标路径%\%%b\%%a" /e /c /y
-
- )
-
- )
复制代码
|