Copying a list of files (i.e. content of another folder)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
arbine
Junior Member
Junior Member
Posts: 2
Joined: 2021-12-03, 19:29 UTC

Copying a list of files (i.e. content of another folder)

Post by *arbine »

Hi,

sorry if this has been posted before, I couldn't find the exact same question. Closest is probably https://ghisler.ch/board/viewtopic.php?t=52595. Maybe it already answers my questions, but I don't understand it that way, yet.

What I have:
Two folders, one - FolderA - containing hundreds of pictures in high quality. The other one - FolderB - containing a subset (~50) of the pictures in FolderA, but in worse quality. However, the filenames are the same in both folders.

What I want to do:
I want to get the subset from FolderB, but in high quality from FolderA. In other words, I want to find the pictures listed in FolderB in FolderA and copy those to a new FolderC.

Can somebody tell me, if that's possible straight forward? If so, can you give me a dummy explanation, please? :D

Thanks,
arbine
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Copying a list of files (i.e. content of another folder)

Post by *Dalai »

As long as the directory structure is idential it can be done like this:
  1. Navigate to FolderA on the left-hand side and to FolderB on the other side.
  2. Open the directory synchronization tool via menu Commands > Synchronize Dirs or its associated command cm_FileSync.
  3. In the synchronize directories dialog, disable "Singles" and enable "Unequal files".
  4. Press Compare and once that's done, set the synchronization direction via the context menu: Select for copying -> (left to right). This step is important because it determines which files are going to be copied in the next step
  5. Click Synchronize, and before confirming, change the target to FolderC via the edit field or the Browse button.
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
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copying a list of files (i.e. content of another folder)

Post by *petermad »

2arbine
You can use this button:

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

0
-1
to mark the files in FolderB that also exist in FolderA, then change folderB to folderC and copy.

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".
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Copying a list of files (i.e. content of another folder)

Post by *Gral »

IMO

Code: Select all

TOTALCMD#BAR#DATA
cm_FocusTrg, cm_SelectAllFiles, cm_CopyNamesToClip, cm_ClearAll, cm_FocusTrg, cm_LoadSelectionFromClip

wcmicons.dll,72
Mark files that exist in target panel

0
-1
is enough in this case
arbine
Junior Member
Junior Member
Posts: 2
Joined: 2021-12-03, 19:29 UTC

Re: Copying a list of files (i.e. content of another folder)

Post by *arbine »

Dalai wrote: 2021-12-03, 20:38 UTC As long as the directory structure is idential it can be done like this:
  1. Navigate to FolderA on the left-hand side and to FolderB on the other side.
  2. Open the directory synchronization tool via menu Commands > Synchronize Dirs or its associated command cm_FileSync.
  3. In the synchronize directories dialog, disable "Singles" and enable "Unequal files".
  4. Press Compare and once that's done, set the synchronization direction via the context menu: Select for copying -> (left to right). This step is important because it determines which files are going to be copied in the next step
  5. Click Synchronize, and before confirming, change the target to FolderC via the edit field or the Browse button.
Regards
Dalai
A little information I did not provide in my first post: One of the folders is actually a Phone connected via USB. Sync Tool is not working for it. I had the same idea at one point, but couldn't do it that way. Thanks nevertheless!

Thanks for all the replies!

I will try the button-option tomorrow, although I have never created a button in TC before. :D
Post Reply