- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- powershell -NoProfile -ExecutionPolicy bypass ^
- $files=@(dir^|?{($_.BaseName -match '^^DJI((?!_\d{14}$).)*$') -and ($_ -is [System.IO.FileInfo])});^
- for($i=0;$i -lt $files.count;$i++){^
- $dt=$files[$i].CreationTime.toString('_yyyyMMddHHmmss');^
- $newname=$files[$i].BaseName+$dt+$files[$i].Extension;^
- write-host ($files[$i].Name+' --^> '+$newname);^
- mv -liter $files[$i].FullName ($files[$i].Directory.FullName+'\'+$newname);^
- };
- echo;%info%
- pause
- exit
复制代码
|