- Feb
- 240
- 3
When trying to copy or move a file to itself (e.g. "copy *.* ." or "move *.* ."), the error reported is: "Can't COPY or MOVE file to itself".
However, what happens next is not always the same. If the operation is a "copy" operation, then TCC continues processing with the next file. However, if the operation is a "move" operation, TCC aborts the operation.
This means, for instance, that a command like "copy *.* . /sx" will succeed in copying all of the files from the subdirectories, while "move *.* . /sx" will not.
Is this discrepancy deliberate? (Personally, I'd prefer that TCC continue [rather than aborting] in both cases, skipping the problematic files, and continuing with the rest).
However, what happens next is not always the same. If the operation is a "copy" operation, then TCC continues processing with the next file. However, if the operation is a "move" operation, TCC aborts the operation.
This means, for instance, that a command like "copy *.* . /sx" will succeed in copying all of the files from the subdirectories, while "move *.* . /sx" will not.
Is this discrepancy deliberate? (Personally, I'd prefer that TCC continue [rather than aborting] in both cases, skipping the problematic files, and continuing with the rest).