Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 88 Posts 41 Joined 2006-05-13 21:57 20-year member UID 55479
Status Offline
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 ]
Credits 9,023 Posts 5,017 Joined 2007-05-31 19:39 19-year member UID 89899 Gender Male
Status Offline
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.
Credits 100 Posts 93 Joined 2009-01-14 15:04 17-year member UID 136661 Gender Male From 湖南
Status Offline
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 /?