- @cd /d "%~dp0"&@echo off & setlocal EnableDelayedExpansion
- for /f "delims=" %%a in ('"dir /a/s/b/on *全集*.txt *全集*.chm *全集*.epub *全集*.htm *全本*.txt *全本*.chm *全本*.epub *全本*.htm"') do (
- set file=%%~fa&set file=!file:%~dp0=!&set file=!file:%%~nxa=!
- if not "%%~xa"==".html" (echo %%~fa
- copy "%%~fa" "D:\备份\!file!%%~xna" 2>nul || md "D:\备份\!file!" | copy "%%~fa" "D:\备份\!file!%%~xna"
- )
- )
- pause
复制代码 弄个同级目录的,排除html,
*全集*.txt *全集*.chm *全集*.epub *全集*.htm *全本*.txt *全本*.chm *全本*.epub *全本*.htm可以改*.txt |