中国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-11-24 06:32
47,820 topics / 349,938 posts / today 0 new / 48,298 members
DOS批处理 & 脚本技术(批处理室) » Questions about merging folders?
Printable Version  2,994 / 21
Floor16 q1a2z3q1a2z3 Posted 2008-08-18 00:04
初级用户 Posts 41 Credits 88
If the file names are the same, after changing the file names, the desired effect is to be achieved. (The files that need to be renamed are not just Word files, this is just an example.)




After running according to your code, the result is like this (both are Word files)



[ Last edited by q1a2z3q1a2z3 on 2008-8-18 at 12:11 AM ]
Floor17 HAT Posted 2008-08-18 09:46
版主 Posts 5,017 Credits 9,023















Floor18 q1a2z3q1a2z3 Posted 2008-08-18 11:52
初级用户 Posts 41 Credits 88
If there are three files with the same name, only two files can be saved after merging.

If there are multiple files with the same name and you want to merge them like this.
1.doc 1.old.doc 1.old.old.doc ................
Floor19 HAT Posted 2008-08-18 11:57
版主 Posts 5,017 Credits 9,023
The maximum path length supported by the Windows system is 225, right? If you have dozens of duplicate files, it will exceed this threshold. This solution is theoretically not feasible. Think of other methods.
Floor20 q1a2z3q1a2z3 Posted 2008-08-18 12:16
初级用户 Posts 41 Credits 88
If you support changing 5 files with the same name, it should not exceed the system limit? Specifically how to modify?

[ Last edited by q1a2z3q1a2z3 on 2008-8-18 at 01:04 PM ]
Floor21 753tgb159asx Posted 2009-02-04 09:59
新手上路 Posts 1 Credits 1
I want to keep the original file and change the merged file to another disk. How to write it? Which sentence means deleting the original file?
Floor22 zhengqian529 Posted 2009-02-04 11:13
初级用户 Posts 93 Credits 100 From 湖南
After the HAT code is executed, use the XCOPY command to move to the drive letter you want to move to. To delete the original file, you can use the del command. For the usage of xcopy and del, see del /? and xcopy /?
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023