- @echo off
- mode con lines=1000
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- powershell -NoProfile -ExecutionPolicy bypass ^
- dir^|?{('.jpg' -eq $_.Extension) -and ($_ -is [System.IO.FileInfo])}^|%%{^
- $folder=$_.BaseName -replace '-\d+$','';^
- [void](md $folder -force);^
- write-host ($_.Name+' --^> '+$folder);^
- mv -liter $_.Name $folder;^
- }
- echo;%info%
- pause
复制代码
|