[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
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[WCX] CopyTree: Copying files with folder structure

Post by *MVV »

CopyTree is another packer plugin for copying files with folder structure.

Last version information

Version no: 1.3.0.328 32/64
URL: CopyTree at wincmd.ru / CopyTree at totalcmd.net

Requirements: operating system Windows 2000 and above, Total Commander :)

Features:

+ copies/moves folder trees from branch view/search result
+ handy dialog that allows chosing number of duplicated folder levels
+ allows setting up include/exclude masks for files to be proccessed
+ allows displaying choose dialog once or if Win key is down or every time
+ multi-threading support (background operations in TC 7.55 and later)
+ allows copying directory timestamps
+ reports if some files weren't processed
+ full Unicode support

General information:

Plugin allows to copy/move files from branch view (Ctrl+[Shift+]B by default, or Commands - Branch View menu item) or search results panel ('Feed to listbox' button in search results dialog). TC copies files from theese places w/o keeping directory structure, into single directory.

In order to copy/move files with original directory structure you need to select files, open Pack dialog (Alt+F5 by default), choose CopyTree in the list of plugins (name may differ if you've installed plugin manually) and click OK button. You may also click Configure button to change some plugin options. Plugin will show choose levels dialog depending on situation and configuration.

When you click Cancel in pack progress dialog, TC doesn't allow to undo aborting. However CT supports such feature, but due to TC limitations it is possible to abort operation by clicking Cancel button only once, next time you will need to press Escape key to display abort dialog. The reason is that module ignores continuous TC notifications about cancelling after first Cancel clicking.

If copying directory timestamps option is enabled, entire process is split into two phases: file copy phase and timestamps copy phase (timestamps are copied only for those folders that were selected in a panel, or nested ones).

Plugin shows list of files that weren't processed successfully when operation is complete.
Last edited by MVV on 2020-04-11, 08:49 UTC, edited 4 times in total.
User avatar
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

Great work MVV, thanks for this plugin!

I've created a Hungarian translation for the latest version, which you can download from the following site:
http://bluesoft.hu/software/others/wcx_copytree_1.1.0.96_hungarian.zip

Regards,
Bluestar
» Developer of Total Updater & extDir utility.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thanks, I'll include it into the package. Here some notes:

You shouldn't translate 'Hardcoded' word in a comment, this word is only for English/Russian languages (theese two are hardcoded into plugin and included as sample language files). Please write this line w/o that word, I'll fix it.

Also I think string #10 should be translated just like string #1342 in TC language file because it is the same function?

And, plugin name in string #16 shouldn't be translated.

Do you agree?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

The x64 version doesn't work for me with TC 8.01 RC4 x64.
Only the x86 version can be installed and used.
Trying to install under the x64 TC gives the following error:
---------------------------
CopyTree.wcx
---------------------------
File CopyTree.wcx not found!
---------------------------
OK
---------------------------

Installing under the x86 version of TC works
and it can be used successfully.

Trying to use it in the parallell installed x64 TC results in the error:
---------------------------
Plugin
---------------------------
Error packing files!
---------------------------
OK
---------------------------

Also it is only shown as a possible extension under TC x64 (copytree)
if I change the entry in the wincmd.ini from
CopyTree=%COMMANDER_PATH%\PLUGINS\CopyTree\CopyTree.wcx
to
CopyTree=21,%COMMANDER_PATH%\PLUGINS\CopyTree\CopyTree.wcx
User avatar
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

MVV wrote:Thanks, I'll include it into the package. Here some notes:

You shouldn't translate 'Hardcoded' word in a comment, this word is only for English/Russian languages (theese two are hardcoded into plugin and included as sample language files). Please write this line w/o that word, I'll fix it.
You're right, i fixed it.
MVV wrote: Also I think string #10 should be translated just like string #1342 in TC language file because it is the same function?
Actually i translated it completely the same way, except that in TC's translation the word "következő" is shortened to "köv.", plus in TC's file there's no corresponding Hungarian translation for the word "files" - as it should be in the language file for your plugin imho, since it says "Only files of this t&ype:" in English.lng.

TC_hun: "Csak a köv. típusok:"
PLG_hu: "Csak a &következő fájltípusok:"
PLG_en: "Only files of this t&ype:"
MVV wrote:And, plugin name in string #16 shouldn't be translated.
Do you agree?
Totally agree about that one, i just didn't notice that it refers to the plugin's name (thought because in the readme & everywhere else it's called "CopyTree plugin", without the space :D) . So you're right, in this case it really shouldn't be translated (just the word "Configuration").

I've fixed the things you mentioned, and reuploaded the file to the server (the link remained the same).
» Developer of Total Updater & extDir utility.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Bluestar wrote:Actually i translated it completely the same way, except that in TC's translation the word "következő" is shortened to "köv.", plus in TC's file there's no corresponding Hungarian translation for the word "files" - as it should be in the language file for your plugin imho, since it says "Only files of this t&ype:" in English.lng.

TC_hun: "Csak a köv. típusok:"
PLG_hu: "Csak a &következő fájltípusok:"
PLG_en: "Only files of this t&ype:"
I'll add another one:
TC_en: "Only files of this t&ype:" :D
Don't know why WCMD_HUN.lng contains short version but it is so. Maybe full translation is better.
Bluestar wrote:Totally agree about that one, i just didn't notice that it refers to the plugin's name (thought because in the readme & everywhere else it's called "CopyTree plugin", without the space :D) . So you're right, in this case it really shouldn't be translated (just the word "Configuration").
Yeah, there is a little mess with that space. :D
Bluestar wrote:I've fixed the things you mentioned, and reuploaded the file to the server (the link remained the same).
Great, I've got it.
Horst.Epp wrote:The x64 version doesn't work for me with TC 8.01 RC4 x64.
Only the x86 version can be installed and used.
Trying to install under the x64 TC gives the following error:
Thanks for the report, it was strange because it works fine on my machine, but it have failed to run on a virtual one. Finally I found the reason: dumb msvcr100.dll import in 64-bit version only (so it seems that you don't have that DLL). I'll remove that import.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Plugin is updated.

CopyTree 1.1.1.120:
+ added parameter DefaultChoiceIndex to override choice auto-detection
+ parameter DefaultChoiceIndex replaced with DefaultCopyLevel that works w/o dialog too
+ load INI settings button in configuration dialog
+ resizeable choose levels dialog
+ choose levels dialog remembers its size
* removed unwanted import from MVCR100.DLL in 64-bit version
* hung when trying to copy empty dir
* overwrite read-only files

Bluestar, please tralnslate new LNG string.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV

Danish translation can be downloaded at: http://madsenworld.dk/tcmd/copytree_1.1.1.120_danish.zip
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
Bluestar
Senior Member
Senior Member
Posts: 377
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

2MVV:

Updated Hungarian translation is available at http://bluesoft.hu/software/others/wcx_copytree_1.1.1.120_hungarian.zip
» Developer of Total Updater & extDir utility.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

petermad, Bluestar
Thanks, next update will include your translations.
TW
Senior Member
Senior Member
Posts: 383
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

german translation:

http://thomasweber.altervista.org/German.zip

i don't mind if someone wants enhance this version...

thanks much MVV for your fine plugins!
licenced and happy TC user since 1994 (#11xx)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TW,
Great that you like it. :)
Thanks for the translation. I've added/fixed shortcut keys in strings 7, 8, 9, 10 (it is better to use same shortcut key as in TC copy dialog for that function). Please send me translated line from pluginst.inf file too.
TW
Senior Member
Senior Member
Posts: 383
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

MVV wrote:TW
I've added/fixed shortcut keys in strings 7, 8, 9, 10 (it is better to use same shortcut key as in TC copy dialog for that function).
that sure does make a lot of sense.

here's also the pluginst.inf : http://thomasweber.altervista.org/pluginst.zip

a very small contribution. :?
licenced and happy TC user since 1994 (#11xx)
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

This is a great plugin, very very useful.

Thank you!
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

JohnFredC, you're welcome. :)

TW, thanks!

Plugin is updated,

CopyTree 1.1.2.130:
+ remember 20 last used file masks
* removed choose levels dialog icon
Post Reply