Looking for a modfied "Mover plugin"

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
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Looking for a modfied "Mover plugin"

Post by *Peter »

Hello

Franck8244 has released the plugin "Mover 0.1" to separate files into folders, incl. source code...
http://www.totalcmd.net/plugring/Mover.html.

A discussion can be found here:
http://www.ghisler.ch/board/viewtopic.php?t=7564

Now I need a modification of this plugin:...

I have many directories with a numeric system, named

Code: Select all

12345-609
12345-504
564890-203
In these directories are files with the same logic:

Code: Select all

12345-609
    12345-609-001.txt
    12345-609-002.txt

12345-504
    12345-504-128-001.txt
    12345-504-128-006.txt
    12345-504-129-058.txt


564890-203
    564890-203-550-875.txt
    564890-203-551-123.txt
    564890-203-551-124.txt
The system is the same: "fixed number" / "Line" / "fixed number" / "Line" /
(fixed number / Line) / changing number.

Now I have to separte and move the files regarding a fixed group of the
numbers.

Example: "regard the third group of numbers (550, 551)"

Code: Select all

    564890-203-550-875.txt:
        makedir 564890-203-550 and move the file in it

    564890-203-551-123.txt
    564890-203-551-124.txt
        makedir 564890-203-551 and move both files in it

A perfect modification would have a configuration like this:

Code: Select all

"What is the separator string"?
                           Type a: fixed string
                           Type b: from letter #x to letter #y
                           Type c: from separator #n to separator #o

"What string should be used for the new sub-dirs:"?
                           Type a: fixed string
                           Type b: from letter #x to letter #y
                           Type c: from separator #n to separator #o

(Type a is not flexible enough; Type b would be not to complicated and very useful; Type c is very flexible and maybe a lit bit luxury ..)

The example above could be solved like this:

Code: Select all

"What is the separator string"?
                           Type c: from 2. separator "-" to 3. separator "-" (would find 550 and 551)

"What string should be used for the new sub-dirs:"?
                           Type c: from 0. separator "-" to 3. separator "-" (would find 564890-203-551 and 564890-203-551)
(Configuration with Type b is maybe much easier ...)

Because I don't know anything about programming I have to ask the forum for a "little" help ...

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

The only thing you need is the ability of TC to create folders using MRT (beleive me, not only you need this feature - there're lots of us starving for it :wink:). Then, if you use regexps there won't be any problem to achieve what you want.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have made a modified version of the Mover plugin which can be downloaded at: http://www.totalcmd.net/plugring/mover-eng.html

1. The Tab-order in the dialog has been fixed.
2. Some of the most common error messages have ben translated from French.
3. The names of the two month and day checkboxes have been changed to something that I find more logical.
3. The order of the two month and day checkboxes have been switched to make the dialog more logical.

A Danisch version can also be found at: http://www.totalcmd.net/plugring/mover-dan.html
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
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Because there are some people which are interested in the development of "Mover" and there are two or three threads regarding the same plugin:

I want to suggest to focus the discussion here in the main thread.

http://ghisler.ch/board/viewtopic.php?t=7564

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Looking for a modfied "Mover plugin"

Post by *tbeu »

There now is a reimplemented Mover plugin that also works in 64-bit TC.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Re: Looking for a modfied "Mover plugin"

Post by *Peter »

Thanks, @tbeu
TC 10.xx / #266191
Win 10 x64
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Looking for a modfied "Mover plugin"

Post by *tbeu »

@Peter Is the separation based on substrings of the filenames still relevant for you?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Re: Looking for a modfied "Mover plugin"

Post by *Peter »

tbeu wrote: 2019-07-02, 08:09 UTC @Peter Is the separation based on substrings of the filenames still relevant for you?
No. Thanks for asking.
TC 10.xx / #266191
Win 10 x64
Post Reply