本帖最后由 batman 于 2011-6-28 09:21 编辑
完整的:- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%a in ('dir /a-d /b /s^|findstr "views.*tmpl"') do (
- set "str=%%~dpa"&set "str=!str:\j15\=\new\!"
- set "str=!str:\views\=\!"
- copy /y "%%a" "!str:\tmpl\=\!"
- )
复制代码
|