[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: sheep, Hacker, Stefan2, white

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

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

Post by *Matrix » 2019-09-11, 23:14 UTC

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: 8998
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

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

Post by *petermad » 2019-09-12, 07:21 UTC

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 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

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

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

Post by *MVV » 2019-09-12, 11:45 UTC

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: 46
Joined: 2005-12-10, 21:15 UTC

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

Post by *Matrix » 2019-09-13, 02:42 UTC

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: 8412
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post by *MVV » 2019-09-13, 06:03 UTC

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: 63
Joined: 2006-11-07, 16:36 UTC
Location: Trieste, Italy
Contact:

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

Post by *mikedepetris » 2019-09-13, 08:29 UTC

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: 8998
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

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

Post by *petermad » 2019-09-13, 09:08 UTC

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 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

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

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

Post by *Matrix » 2019-09-13, 12:25 UTC

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!!!!

Post Reply