Z.bat- @echo off
- set file1=A.txt
- set file2=B.txt
- powershell -Command "[System.IO.File]::WriteAllText('%~dp0%file2%',[regex]::Match([System.IO.File]::ReadAllText('%~dp0%file1%',[System.Text.Encoding]::Default),'\d{6}','RightToLeft').Value,[System.Text.Encoding]::Default)"
- pause
- exit /b
复制代码
|