本帖最后由 flashercs 于 2019-8-26 13:38 编辑
回复 8# zhaosiyu2010 - @echo off
- set "filepath=e:\test\[1-9].txt"
- Powershell -NoProfile -Command "Get-ChildItem -Path \"%filepath%\" | ForEach-object { [System.IO.File]::WriteAllText($_.FullName, [System.IO.File]::ReadAllText($_.FullName, [System.Text.UTF8Encoding]::UTF8), (New-Object System.Text.UTF8Encoding -ArgumentList $true)) }"
- pause
- exit /b
复制代码
|