- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- start mshta VBScript:Execute("msgbox(""%info%""):close")
- cd /d "%~dp0"
- powershell ^
- dir *.pdf -r^|?{($_ -is [System.IO.FileInfo]) -and ($_.BaseName -match '\s\d+$')}^|%%{^
- $newname=($_.BaseName -replace '^^.+\s','')+$_.Extension;$newfile=$_.Directory.FullName+'\'+$newname;^
- write-host ($_.FullName+' --^> '+$newname);^
- mv -liter $_.FullName $newfile;^
- }
- pause
复制代码
|