@echo off
title 文件搜索
color 2a
set/p a=輸入要查找的文件名:
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
dir /s/b/a-d %%i:%a%>>1.txt
)
cls&echo 查到的路徑如下
type 1.txt
echo 按任意鍵將文件複製到d:\1
pause>nul
for /f %%i in (1.txt) do (
copy %%i d:\1
)
@echo off
title 文件搜索
color 2a
set/p a=輸入要查找的文件名:
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
dir /s/b/a-d %%i:%a%>>1.txt
)
cls&echo 查到的路徑如下
type 1.txt
echo 按任意鍵將文件複製到d:\1
pause>nul
for /f %%i in (1.txt) do (
copy %%i d:\1
)
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) | Powered by Discuz! X3.3 |