回复 15# qwop1209 - @echo off
- mode con lines=1000
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- powershell -NoProfile -ExecutionPolicy bypass ^
- foreach($item in (dir^|?{$_ -is [System.IO.DirectoryInfo]})){^
- $files=@(dir -liter $item.Name *.jpg^|?{$_ -is [System.IO.FileInfo]});^
- if($files.length -gt 0){^
- write-host ($item.Name+'\'+$files[0].Name+' --^> folder.jpg');^
- cp -liter ($item.Name+'\'+$files[0].Name) ($item.Name+'\folder.jpg') -force;^
- };^
- };^
- write-host '%info%' -ForegroundColor green;
- pause
复制代码
|