本帖最后由 WHY 于 2018-11-16 14:11 编辑
- @echo off
- dir /b /s *.html > List.Log
- PowerShell "forEach($f In (type List.Log -ReadCount 0)){$s=[IO.File]::ReadAllText($f,[Text.Encoding]::Default) -replace '<p>' -replace '<h1>(?!TTT)','$&TTT' -replace '</p>','<br />' -replace '<span>(?!作者:)','$&作者:';sc -Path $f -Value $s}"
- del List.Log
- pause
复制代码
|