![]() |
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-09-23 12:21 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » Copy multiple folder files to one folder and rename the files |
| Printable Version 7,118 / 0 |
| Floor1 hlzer | Posted 2020-03-11 22:43 |
| 新手上路 Posts 2 Credits 3 | |
|
Want to copy files from multiple folders into one folder, for example, there are folders 1, 2, 3, ..., 100; for example, folder 1 has files A.JPG B.JPG; folder 2 has A.JPG C.JPG; folder 3 has A.JPG B.JPG C.JPG; there are many duplicate files like this, and it is required to copy all of them into a new folder. Because there are three duplicates of A.JPG, it is required to keep only one in the new folder and rename it to A=3.JPG, B.JPG has two duplicates so rename it to B=2.JPG, C also has two duplicates rename it to C=2.JPG, so in the new folder there are these three: A=3.JPG
B=2.JPG C=2.JPG Please ask experts to write a code like this, thank you! [ Last edited by hlzer on 2020-3-11 at 22:58 ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |