Hi
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 useto create a user command that simply duplicates the current file with renaming (/O6) into the same directory (/T=".") without displaying a dialog box (/G).
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
In fact, cm_copysamepanel does not seem to support any options (therefore, it is *not* the "same" as cm_copy) and thus cannot be invoked without showing the dialog or specifying the overwrite behavior. Maybe this could be changed/added as well for the parameters for which it makes sense.
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:
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:
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!
Statistics: Posted by funkymonk — 2024-11-10, 09:52 UTC