本帖最后由 terse 于 2013-11-7 16:45 编辑
也想不出好办法来 想到再补上- @echo off
- set "src=D:\my folder"
- set "find=findstr /ivc:"\\bathome\\" |findstr /ivec:"\\bathome" |findstr /ivec:".org""
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('dir /s /b "%src%"^|!find!') do (
- set "str=%%i"
- if exist "%%i\" (
- md "!str:%src%=F:\back\my folder!"
- ) else >"!str:%src%=F:\back\my folder!" type "%%i"
- )
- pause
复制代码
|