- @echo off
- title 文件移动工具
-
- if not exist Found md Found
- (for /f "delims=" %%a in (.\a.txt) do (
- set .found=
- for /r %%i in ("%%a?") do (
- if /i "%%~nxi" == "%%a" (
- Move "%%i" "Found"
- set .found=#
- )
- )
- if not defined .found echo %%a
- )) >NotFound.txt
- pause
复制代码 增加了一个 "delims=" 可以适就 文件名中有空格了,很好用了,感谢 tmplinshi 的帮助,7000多个文件已经移动完成 |