- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set "input=a.txt"
- set "output=b.txt"
- powershell -NoProfile -ExecutionPolicy bypass ^
- $text=[IO.File]::ReadAllText('%input%', [Text.Encoding]::Default).trim().split(\"`r`n\",[StringSplitOptions]::RemoveEmptyEntries);^
- $s=$text^|sort {0+($_.trim() -split '\s+')[1]} -des;^
- [IO.File]::WriteAllLines('%output%', $s, [Text.Encoding]::Default);
- echo;%info%
- pause
复制代码
|