本帖最后由 flyinnet9 于 2015-11-26 17:59 编辑
被你绕晕了。。。。- @echo off
- for /f "delims=" %%a in ('findstr "pcde=90" d:\a\1.ini') do set "str=%%a"
- if "%str%"=="pcde=900" (
- if not exist "d:\b\p\" md "d:\b\p"
- copy "d:\a\d\uuu900.*" "d:\b\p\uuu.*"
- copy "d:\a\1.ini" "d:\b\p\"
- xcopy /y /s /i "d:\a\e\f" "d:\b\p\"
- )else (
- if not exist "d:\b\q\" md "d:\b\q"
- copy "d:\a\d\uuu901.*" "d:\b\q\uuu.*"
- copy "d:\a\1.ini" "d:\b\q\"
- xcopy /y /s /i "d:\a\e\f" "d:\b\q\"
- )
复制代码
|