[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
建议直接下载 IrfanView,用IrfanView的批量改名,可以指定命名格式.用$H,$W就是图像分辨率.

TOP

回复 5# 老卡机

为什么说不能。
不知道你有没有用irfanview试过。

复制/重命名规则设置Hx$W\$F
(分辨率长x分辨率宽\元文件名)
输出目录设置为D:\

点run test rename,确认下都OK,直接点start batch就完了。

图片上传失败了,只能50KB?这也太小了。
(就是一个设定画面,选择改名模式,输入改名规则,添加要处理的文件列表)

处理前:
  1. D:\Users\SLORE\Desktop\testimage>tree /F
  2. D:.
  3. │  1_dog.jpg
  4. │  2_dog.jpg
  5. │  3_dog.jpg
  6. │  4_dog.jpg
  7. └─elephant
  8.         1_elephant3.jpg
  9.         2_elephant3.jpg
  10.         3_elephant3.jpg
  11.         4_elephant3.jpg
复制代码
dry-run模式测试结果:
  1. Pattern: $Wx$H\$F
  2. Processing file: D:\Users\SLORE\Desktop\testimage\1_dog.jpg
  3. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\449x500\1_dog.jpg
  4. Processing file: D:\Users\SLORE\Desktop\testimage\2_dog.jpg
  5. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\450x500\2_dog.jpg
  6. Processing file: D:\Users\SLORE\Desktop\testimage\3_dog.jpg
  7. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\449x500\3_dog.jpg
  8. Processing file: D:\Users\SLORE\Desktop\testimage\4_dog.jpg
  9. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\450x500\4_dog.jpg
  10. Processing file: D:\Users\SLORE\Desktop\testimage\elephant\1_elephant3.jpg
  11. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\305x288\1_elephant3.jpg
  12. Processing file: D:\Users\SLORE\Desktop\testimage\elephant\2_elephant3.jpg
  13. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\306x288\2_elephant3.jpg
  14. Processing file: D:\Users\SLORE\Desktop\testimage\elephant\3_elephant3.jpg
  15. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\305x288\3_elephant3.jpg
  16. Processing file: D:\Users\SLORE\Desktop\testimage\elephant\4_elephant3.jpg
  17. ... Ok - Warning: Destination file already exists -> Replace: C:\testimage2\306x288\4_elephant3.jpg
  18. 8 Files - Errors: 0, Warnings: 8
复制代码
移动后:
  1. C:\testimage2>tree /F
  2. C:.
  3. ├─305x288
  4. │      1_elephant3.jpg
  5. │      3_elephant3.jpg
  6. ├─306x288
  7. │      2_elephant3.jpg
  8. │      4_elephant3.jpg
  9. ├─449x500
  10. │      1_dog.jpg
  11. │      3_dog.jpg
  12. └─450x500
  13.         2_dog.jpg
  14.         4_dog.jpg
  15. C:\testimage2>
复制代码
缺点的话,分辨率的文件夹不存在的时候,会出个提示问你是否确认一直点OK就行了,没找到option去关闭。
不过命令行模式应该有。
1

评分人数

TOP

返回列表