本帖最后由 flashercs 于 2019-8-25 20:31 编辑
batch- @echo off
- pushd "%~dp0"
- Powershell -NoProfile -Command "Get-Content A.txt|ForEach-Object -Begin {$str=Get-Content B.txt|Out-String} -Process {$str=$str.Replace($_,'')} -End {$str|Out-File -FilePath B.txt}"
- popd
复制代码
|