[WCX] CopyTree: Copying files with folder structure

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Matrix
Junior Member
Junior Member
Posts: 66
Joined: 2005-12-10, 21:15 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *Matrix »

I'm sure I am missing something, but is it possible with copytree to default copy to opposite panel? I.e. without having to specify the path in the options popup

ATM, and I may have done something I shouldn't, however, when the option dialogue box comes up, the 'Copy selected objects to:' path is the same path of where the files are located.

Is this possible, or am I using it incorrectly?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [WCX] CopyTree: Copying files with folder structure

Post by *petermad »

Are you perhaps pressing Crtl+Alt+F5 instead of Alt+F5 to start the packing - if you press Crtl+Alt+F5, packing is performed to the same directory as the source files (for all packers).
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
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: [WCX] CopyTree: Copying files with folder structure

Post by *MVV »

Also, AltGr (right Alt on some keyboard layouts, e.g. in new Russian layout) works as Alt+Ctrl, so may also cause unexpected behaviour e.g. AltGr+F7 doesn't open Find dialog anymore.

*Matrix, try left Alt+F5 or open Pack dialog via TC main menu.

BTW all archivers get destination path in the same way so you should see wrong path while e.g. ZIPping too, and this path should be displayed in Pack dialog before CopyTree dialog is shown.
User avatar
Matrix
Junior Member
Junior Member
Posts: 66
Joined: 2005-12-10, 21:15 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *Matrix »

Yep that did the trick.

What did wrong was create a ctrl Z keyboard shortcut with internal command cm_PackFiles.

Obviously this does not operate as per alt F5 combo.

alt F5 is good but I like to even short the distance between keystrokes where ever I can.

Any thoughts as to how I can get working with internal command and alternative keyboard shortcut other than alt F5
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: [WCX] CopyTree: Copying files with folder structure

Post by *MVV »

Ah, that's it, Pack dialog checks if Ctrl is down and uses current panel instead of target one.
You shouldn't use Ctrl in a shortcut for packing to target panel.
You can use Alt+Key shortcuts, e.g. you can assign both Alt+Z and Ctrl+Alt+Z for cm_PackFiles, and former will pack to target panel and latter to current one. It may overlap though with Alt+Letter quick search mode.
mikedepetris
Junior Member
Junior Member
Posts: 84
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

Re: [WCX] CopyTree: Copying files with folder structure

Post by *mikedepetris »

Thanks MVV, I just realized ctrl-alt-F5 does nothing in my TC, do you have any advice about what to check?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [WCX] CopyTree: Copying files with folder structure

Post by *petermad »

Ah, that's it, Pack dialog checks if Ctrl is down and uses current panel instead of target one.
Just checked it - it is not Ctrl that is automatically checked when using Alt+F5 - it is Shift. If Shift+Alt+F5 is pressed then files are MOVED into the archive.

But if you make a keyboard remap of Ctrl+Anykey to cm_PackFiles then TC will place the archive in the source panel instead of in the target panel - so in that respect it is corect, but only if a keyboard remap is made and Ctrl is part of the remapping.

So I always have these 2 remmapings in my wincmd.ini file:

Code: Select all

[Shortcuts]
CA+F5=cm_PackFiles
CAS+F5=cm_PackFiles
then Ctrl+Alt+F5 will COPY files to archive in current panel and Ctrl+Alt+Shift+F5 will MOVE files to archive in current panel.

History.txt:
26.10.04 Added: Ctrl+Alt+Shift+F5 (when assigned manually to cm_packfiles) opens pack dialog for moving to archive in same dir
29.10.02 Fixed: Ctrl+Alt+Click on F5 button didn't create archive in same dir
21.02.94 Move into new archive file with ALT+SHIFT+F5
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
User avatar
Matrix
Junior Member
Junior Member
Posts: 66
Joined: 2005-12-10, 21:15 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *Matrix »

No worries team, I changed my config to be shift Z with internal pack command.

Thank you for helping me figure it out. You time and effort is appreciated.

Works perfect. Where would we be without this program!!!!
alexandru.ort
Junior Member
Junior Member
Posts: 3
Joined: 2020-03-08, 23:11 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *alexandru.ort »

Is there a way to save the last tree level files were copied to? This would be very useful.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: [WCX] CopyTree: Copying files with folder structure

Post by *MVV »

Well, different pairs "source-target" usually require different levels to be kept. So saving last level perhaps only makes sense when you copy a lot from the same source to many different targets in a sequence. But how often is it happen?

Maybe DefaultCopyLevel parameter may help you?
alexandru.ort
Junior Member
Junior Member
Posts: 3
Joined: 2020-03-08, 23:11 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *alexandru.ort »

I will tell you exactly my use case. Mostly, I use this plugin when I copy music. For example, I want to copy only one album from an artist, but I would like in the target dir to be put in a folder represeting the artist's name. Sometimes, I want to go up one more level, that is the music genre... and so on.

I didn't read the docs and I didn't know about that parameter. It will help, but it would be better to have the possibility to change it's value from the Configure window, just as we can choose the other opstions too. Maybe you can can make this available in a future version. That would be nice.

Another feature request would be to be able to queue the items we copy.

Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: [WCX] CopyTree: Copying files with folder structure

Post by *MVV »

Another feature request would be to be able to queue the items we copy.
Unfortunately TC doesn't support queuing of pack operations, so it must be implemented completely. But perhaps the idea is nice.
it would be better to have the possibility to change it's value from the Configure window
You're right, I've added it to that dialog.

CopyTree Build 328
+ default copy level setting added to configure dialog
alexandru.ort
Junior Member
Junior Member
Posts: 3
Joined: 2020-03-08, 23:11 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *alexandru.ort »

Thanks. Great job.
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: [WCX] CopyTree: Copying files with folder structure

Post by *Ovg »

MVV wrote: 2020-03-12, 09:12 UTC CopyTree Build 328
+ default copy level setting added to configure dialog
For me link leads to nothing ...
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [WCX] CopyTree: Copying files with folder structure

Post by *petermad »

For me link leads to nothing ...
Same here.
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