中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 06:00
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » (Built) Batch rename files
Printable Version  1,983 / 4
Floor1 lpclimber Posted 2005-08-27 17:43
初级用户 Posts 85 Credits 168
My system is XP. I want to do such a thing in the "Command Prompt"

In my D:\pic directory, there are 100 *.jpg pictures (file names have different lengths and no unified format). I want to rename them to a unified format such as abc1.jpg abc2.jpg abc3.jpg abc100.jpg

Ask the batch processing experts how to achieve this, thank you in advance!

[ Last edited by willsort on 2005-8-28 at 14:30 ]
Floor2 Climbing Posted 2005-08-27 22:19
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
In fact, the owner's problem can be easily achieved using third-party renaming software (such as Tuoba Renamer), or even using Windows Explorer and ACDSee, etc. But since the owner requires using the command line, the following are several methods.

For a while, I can't think of how to do it without using third-party tools, so first give a method using the third-party tool lmod:


When writing this batch processing, I suddenly thought of a method without using third-party tools:
Floor3 lpclimber Posted 2005-08-28 10:51
初级用户 Posts 85 Credits 168
Thank you very much for Climbing's answer. I know that ACDSEE can be easily used to get it done, but I just want to learn batch processing well!
Floor4 Climbing Posted 2005-08-28 14:32
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
To learn batch processing well, you need to work hard to improve your level by solving problems. Simply relying on others to give you solutions to learn from, I feel you won't learn anything useful.

The application of computers is nothing but the amount of experience accumulated.
Floor5 wangfangjian Posted 2009-08-05 05:48
中级用户 Posts 192 Credits 274
Computers are just constantly summarizing experiences. Thanks for the guidance from Lone Ranger.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023