the cm_copy command takes several options, including the /Ox option to specify the overwrite behavior.
Specifically, /O5 and /O6 will rename the source or the target file automatically.
Now, I wanted to use
Code: Select all
cm_copy /GO6T="."
However, what I get is the error message "You cannot copy a file to itself!"
The point is, due to the requested renaming, I'm actually not trying to copy the file to it itself.
Thus, cm_copy should not show the error message but simply take a copy of the file with renaming.
I guess this is a bug. Otherwise, I suggest to treat /O5 and /O6 as described before and simply take a copy of the file with renaming.
---
Side note: There is a command cm_copysamepanel for which history.txt says
Code: Select all
New in Total Commander 6.0 final (17.11.03):
...
- 3 new internal commands: cm_copySamepanel, cm_copyOtherpanel, cm_createShortcuts: Same as cm_copy, but not reacting to Shift and Alt keys!