- @echo off
- cd /d "%~dp0"
- @REM html.txt是 utf8编码
- powershell -c "$enc=new-object system.text.utf8encoding $false;gci .\*.txt|foreach-object{[io.file]::writeAllText($_.FullName,([io.file]::ReadAllText($_.FullName) -replace '<p><img[^>]*></p>'),$enc)}"
- pause
复制代码
|