[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off
  2. mode con lines=2000
  3. title 互助互利,扫码头像,感谢赞助;有问题,加QQ956535081及时沟通
  4. cd /d "%~dp0"
  5. powershell ^
  6.     dir -r^|?{$_.BaseName -match '^^\d{14}-'}^|sort {$_.FullName.Length} -des^|%%{^
  7.         $newname=($_.BaseName -replace '^^\d{14}-','')+$_.Extension;^
  8.         $newfile=$fd=[IO.Directory]::GetParent($_.FullName).FullName+'\'+$newname;^
  9.         if(-not (test-path -liter $newfile)){^
  10.             write-host $_.FullName -nonewline;^
  11.             write-host (' --^> '+$newname) -ForegroundColor green;^
  12.             mv -liter $_.FullName $newfile;^
  13.         }else{^
  14.             write-host ('[重名]'+$_.FullName+' --^> '+$newname) -ForegroundColor red;^
  15.         };^
  16.     };
  17. pause
复制代码
提供bat代写,为你省时省力省事,支付宝扫码头像支付
微信: unique2random

TOP

回复 5# tempwq
赞助才是我的动力
提供bat代写,为你省时省力省事,支付宝扫码头像支付
微信: unique2random

TOP

回复 8# tempwq

一次友好的互助
提供bat代写,为你省时省力省事,支付宝扫码头像支付
微信: unique2random

TOP

返回列表