can I copy for example 1 file to many folders?

English support forum

Moderators: Hacker, petermad, Stefan2, white

giulia
Senior Member
Senior Member
Posts: 328
Joined: 2013-09-14, 05:33 UTC
Location: Europe

can I copy for example 1 file to many folders?

Post by *giulia »

Hi

I have select a file on left panel and i have selected several folder on the right panel
on the left panel , i select the file -> copy ,but tc did save on the root

can I copy for example 1 file or more to many folders?

thanks
love Total Commander , best file manager ever made
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: can I copy for example 1 file to many folders?

Post by *Stefan2 »

In the F5-Copy-Dialog check out the "[Options >>]" and choose
"Copy to all selected folders/links in the target panel"






 
giulia
Senior Member
Senior Member
Posts: 328
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: can I copy for example 1 file to many folders?

Post by *giulia »

Stefan2 wrote: 2024-08-28, 07:40 UTC In the F5-Copy-Dialog check out the "[Options >>]" and choose
"Copy to all selected folders/links in the target panel"
Hi
yes that's right
thanks!
love Total Commander , best file manager ever made
User avatar
mrv
Junior Member
Junior Member
Posts: 8
Joined: 2025-01-15, 14:41 UTC
Location: Hungary

Re: can I copy for example 1 file to many folders?

Post by *mrv »

Hello!

What if you need to copy to drives rather than folders?

E.g. 60GB of music on 2 identical usb drives and it takes hours to do this, how can this be done in one process (not by running 2 TC copies together), reading the source once and writing it to 2 or more destinations?
Problem could be the buffer if one of the drives is slower. (Faster drive waiting, slow still writing.)
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

mrv wrote: 2025-02-21, 12:53 UTC What if you need to copy to drives rather than folders?
I think you can create symbolic links or shortcut files (with a bit of trouble) to the roots of your drives and select those as targets.
User avatar
mrv
Junior Member
Junior Member
Posts: 8
Joined: 2025-01-15, 14:41 UTC
Location: Hungary

Re: can I copy for example 1 file to many folders?

Post by *mrv »

I wouldn't open a new question... about copying.

I got a search result (for date, size, etc.) on one tab (left), but these are just filenames (deep in directories).
How can I copy these so that the full path is preserved?

Example:

The listed (left tab): xyz.abc
The real source: X:\1\2\3\4\5\xyz.abc
The destination (right tab): Y:\

Now selected only the xyz.abc file (from search result tab), and copy only this file without any folders. xyz.abc -copy-> Y:\xyz.abc

Need X:\1\2\3\3\4\5\xyz.abc -copy-> Y:\1\2\3\3\4\5\xyz.abc (created automatically all folders and copy the xyz.abc file to the last "5" folder)
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

mrv wrote: 2025-02-21, 13:42 UTC I got a search result (for date, size, etc.) on one tab (left), but these are just filenames (deep in directories).
How can I copy these so that the full path is preserved?
HISTORY.TXT wrote: 18.01.24 Release Total Commander 11.03 release candidate 1
18.01.24 Added: Copy files, "Keep relative paths": wincmd.ini [Configuration] RelativePathCopy: Add 8 to not copy the drive letter / the server name for UNC paths) (32/64)
18.01.24 Added: Copy files: The option "Keep relative paths" is now also available in search results, copies entire path and changes drive from C: to C (not remembered between sessions) (32/64)
Help wrote: RelativePathCopy=2 Controls option "Keep relative paths" in F5/F6 dialog. Sum of:
1: enabled at start
2: remember last option while TC is running
4: remember last option also after closing TC
8: do not copy the drive letter/UNC server from search results
-1: hide option (do not add to sum)
So for example, use RelativePathCopy=10 in your wincmd.ini file, restart TC and use the option "Keep relative paths".
User avatar
mrv
Junior Member
Junior Member
Posts: 8
Joined: 2025-01-15, 14:41 UTC
Location: Hungary

Re: can I copy for example 1 file to many folders?

Post by *mrv »

Not working for me.

Add this line the Wincmd.ini file:
[Configuration]
RealativePathCopy=2
LanguageIni=wcmd_hun.lng
Mainmenu=wcmd_hun.mnu
...

Tested 2, 8 or 10

After F5 copy dialog, pushed +F7 new window: folder list, added R:\, Y:\, and named R&Y, pushed ok.
Only file copyed to one location, no R and Y, only R or Y, without directorys.

My TC version 11.51.
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

mrv wrote: 2025-02-22, 12:04 UTC After F5 copy dialog, pushed +F7 new window: folder list, added R:\, Y:\, and named R&Y, pushed ok.
Only file copyed to one location, no R and Y, only R or Y, without directorys.
You seem to do weird things, but after I tested my suggestion again, I found that it doesn't work. It seems that the option "Keep relative paths" doesn't work together with the option "Copy to all selected folders/links in the target panel". Perhaps this is a bug.

2ghisler(Author)
Is it a bug?
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

mrv wrote: 2025-02-21, 12:53 UTC What if you need to copy to drives rather than folders?

E.g. 60GB of music on 2 identical usb drives and it takes hours to do this, how can this be done in one process (not by running 2 TC copies together), reading the source once and writing it to 2 or more destinations?
Using the option "Copy to all selected folders/links in the target panel" would NOT be doing "reading the source once and writing it to 2 or more destinations". It would still be separate copy operations, similar to copying to one drive using F5 Copy, followed by F2 Queue, and then doing this for the other drive too.
User avatar
Dalai
Power Member
Power Member
Posts: 9945
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: can I copy for example 1 file to many folders?

Post by *Dalai »

Reading a source once and writing it to multiple destination directories is not possible. Each copy operation is separate, regardless of whether or not they're handled sequentially or in parallel. Implementing something like this would be a huge undertaking because it would be necessary to tell the OS for each block copied to not swap these pages out to disk (leaving them in RAM) and then writing each block out to the destinations before reading the next block.

However, the option "Copy to all selected folders/links in the target panel" is what can achieve the requested goal, copying one source to multiple directories.
#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
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

white wrote: 2025-02-22, 12:51 UTC You seem to do weird things, but after I tested my suggestion again, I found that it doesn't work. It seems that the option "Keep relative paths" doesn't work together with the option "Copy to all selected folders/links in the target panel". Perhaps this is a bug.

2ghisler(Author)
Is it a bug?
Is it?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: can I copy for example 1 file to many folders?

Post by *ghisler(Author) »

The two options are contradictory: "Copy to all selected folders/links in the target panel" seems to imply that the files will be copied directly to the selected folders/links and not to subdirectories from relative paths.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can I copy for example 1 file to many folders?

Post by *white »

ghisler(Author) wrote: 2025-03-04, 07:57 UTC The two options are contradictory: "Copy to all selected folders/links in the target panel" seems to imply that the files will be copied directly to the selected folders/links and not to subdirectories from relative paths.
No, the options are not contradictory. "Copy to all selected folders/links in the target panel" means you select multiple targets instead of one, nothing more. It doesn't imply that one of the copy options shouldn't work.

When copying to "folder1" by pressing F5 and then F2, and then copying to "folder2" by pressing F5 and then F2, the option "Keep relative paths" does work. There is no reason why this option wouldn't work if you select both folders and use the option "Copy to all selected folders/links in the target panel".
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: can I copy for example 1 file to many folders?

Post by *ghisler(Author) »

It would be very easy to change, but wouldn't it be confusing? Maybe I need to change the wording of the option?
Author of Total Commander
https://www.ghisler.com
Post Reply