could the MOVE operation remove from SOURCE if duplicate?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
perrella
Junior Member
Junior Member
Posts: 3
Joined: 2006-01-08, 20:53 UTC
Contact:

could the MOVE operation remove from SOURCE if duplicate?

Post by *perrella »

It occurs to me that during a Rename/Move operation, if the file exists in the target directory and I don't want to overwrite it, it would be nice if it stayed selected in the source panel. That way, I could easy delete it from the source.
My example is that I'm buying ebooks from HumbleBundle but sometimes I already have that book from a prior purchase and I tend to annotate my PDFs with notes. So, if the book is already in the destination, I don't want to overwrite it (and lose my notes). I just want to remove it from the source. Now, I could either have it removed during the move, OR just leave it marked in the source panel (my preference). That way, I can do the delete myself in one step.

Can I do this today?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *Horst.Epp »

There is the internal command cm_RestoreSelection which by default is bound to Num /
This restores your last selection.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *Dalai »

You can also make use of TC's directory synchonization feature to accomplish what you want. Select "duplicates" and perhaps "Equal files" and deselect "singles". Let TC compare the structures and then you can delete files via the context menu ("Delete left", or "Delete right"). Just make sure that you don't delete files on the wrong side!

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
perrella
Junior Member
Junior Member
Posts: 3
Joined: 2006-01-08, 20:53 UTC
Contact:

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *perrella »

wow - you folks are amazing! Thanks for both ideas!
perrella
Junior Member
Junior Member
Posts: 3
Joined: 2006-01-08, 20:53 UTC
Contact:

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *perrella »

By the way, the first solution, using the NUM-/ command only re-marks one file, not all the files that were selected. The Sync operation is likely the better solution for me.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *Horst.Epp »

perrella wrote: 2021-10-21, 13:02 UTC By the way, the first solution, using the NUM-/ command only re-marks one file, not all the files that were selected. The Sync operation is likely the better solution for me.
For me it reselects the last active selection whatever the number of files where.
But the synchronize function is of course the normal solution.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: could the MOVE operation remove from SOURCE if duplicate?

Post by *petermad »

2perrella
You could also use this button before the move operation:

Code: Select all

TOTALCMD#BAR#DATA
cm_SelectAllBoth,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip

wcmicons.dll,72
Mark files and folders that exist in both windows


-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
Then delete the marked files in the source side, and then mark the remaining files for moving
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply