
CODE: [Copy to clipboard]但是根本无法移动文件夹,高手帮忙啊@echo off
for /f "usebackq delims=" %%i in ("filelist.txt") do if exist "e:\test1\%%i*" xcopy "e:\test1\%%i*" "F:\test2\" /s
CODE: [Copy to clipboard]@echo off
rem Created by MakeBat.bat
rem Written by Ev4n
rem On 2010年06月03日 11:58
setlocal enabledelayedexpansion
if not exist e:\test2 md e:\test2
for /f "delims=" %%a in (f:\filelist.txt) do (
set aa=%%a
set bb=e:\test1\!aa!*
if exist !bb! (
xcopy !bb! F:\test2\ /E
)
)
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |