waynely 当前离线
列兵
evenar 当前离线
TOP
apang 当前离线
上将
@echo off set "pth=d:\123" set/p name=输入文件名: for /f "delims=" %%a in ('dir /a-d /b /s "%pth%\%name%"') do ( set "p=%%~dpa" call xcopy "%%a" "%%p:%pth%=d:\work%%" /y ) pause复制代码
apang 发表于 2012-4-11 13:20
@echo off set "pth=d:\123" for /f "delims=" %%a in (a.txt) do ( for /f "delims=" %%b in ('dir /a-d /b /s "%pth%\%%a"') do ( set "p=%%~dpb" call xcopy "%%b" "%%p:%pth%=d:\work%%" /y ) )复制代码