- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set "txtfile=day.txt"
- powershell -NoProfile -ExecutionPolicy bypass ^
- $text=[IO.File]::ReadAllText('%txtfile%', [Text.Encoding]::Default);^
- $text=$text -replace '(\d{4})-(\d\d)-(\d\d)','$1/$2/$3';^
- [IO.File]::WriteAllText('%txtfile%', $text, [Text.Encoding]::Default);
- echo;%info%
- pause
复制代码
|