Mover (wcx): Packer plugin to separate files per number or date ...

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

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Mover (wcx): Packer plugin to separate files per number or date ...

Post by *franck8244 » 2005-05-31, 06:54 UTC

Yesterday I made a little wcx plugin to separate N files from a list for a french user. I have modify the dialog into english string (messages error are still in french, lazy me :P)

how does it work (consider this as the readme) :
-Number of file :
You have a file list with 1500 files and want to separate them into N folders (regarding only number):Select them all -> Alt+F5->choose 'mover' ->check Separate per file number->put a value in the edit box (between 1 & 10000)->press ok

The plugin creates N folders containing the desired number of files , the last one contains the "rest"

-Separate per date
Filelist->...->check separate per date
If you do not check other boxes it will uses only the year to create folder
otherwise the folder structure can be (example):
-Use day : 20050523 , 20050530, ...
-Use month : 200505, 200504

Folders will contains files with corresponding dates :P
That's all...

Download here
(source included)
Last edited by franck8244 on 2008-03-15, 10:34 UTC, edited 1 time in total.
TC#88260 -

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3463
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard » 2005-05-31, 19:07 UTC

Wow, great ! Works quick and simple ...

Even some finetuning to do :

- if I select "Use day" option, it would be nice to have the according method automatic selected. (same for entering a number of files)
- if I deselect the method, it would be nice to have the options cleared.
- the path at the packing dialog is just ignored ...
- typo at the pluginst.inf (should read "type=wcx")

... keep on coding, it is very handy :)
#5767 Personal license

User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Re: Packer plugin to separate files per number or date ...

Post by *petergus » 2005-06-01, 06:22 UTC

Great plugin!

One thing...

Separate files depending on filetype:

-one folder for all .ZIP files
-one folder for all .EXE files
-one folder for all .GIF files

and so on...

// Peter

User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 » 2005-06-01, 07:40 UTC

sga_wizard wrote:the path at the packing dialog is just ignored

Yes it is, this is a plugin to help the user to "separate files", copying them would take too much time...
You should also not use it while in branch view (subpath is also ignored) : I have added a message in the dialog :wink:

For "auto selection" : it's not a "form", the dialog is included in a ressource file and I do not know how to update it (I'm knew to this kind of programming)...You can customize the source code ;)
Pluginst.inf corrected
petergus wrote:Separate files depending on filetype
Added :wink:

the link is the same, source code and french version can be found near the zip file...
TC#88260 -

User avatar
gbo
Senior Member
Senior Member
Posts: 326
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo » 2005-06-01, 08:57 UTC

Correct link to download the new version :
http://fgartemann.free.fr/TCMD/Plugins/Mover/Mover.zip
the link is the same
For me the link was not the same, it was an old version...

Thanks for the improvements and the source code
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.

User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus » 2005-06-01, 14:15 UTC

franck8244 wrote:
petergus wrote:Separate files depending on filetype
Added :wink:
Nice, thanks!

I found a bug, if a file don't have a filetype, file gets deleted.

// Peter

User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 » 2005-06-01, 14:24 UTC

petergus wrote:I found a bug, if a file don't have a filetype, file gets deleted.
Corrected :P , files without type (extension) will not be moved...

I hope you haven't lost important data...
TC#88260 -

User avatar
Lev
Junior Member
Junior Member
Posts: 82
Joined: 2004-12-14, 13:08 UTC

Post by *Lev » 2005-06-01, 17:02 UTC

The next step would be to separate files by a content plugin field ;)

Spine
New Member
New Member
Posts: 1
Joined: 2005-01-21, 16:03 UTC
Location: Belarus

Post by *Spine » 2005-06-02, 03:30 UTC

It is necessary that together with files descriptions from files.bbs and descript.ion moved.

User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 » 2005-06-02, 05:38 UTC

Lev wrote:separate files by a content plugin field
It can be done but working with wdx is a pain... I won't add this into the plugin myself (someone else can... sources are there for)

It's the same for file.bbs or descript.ion ...
TC#88260 -

User avatar
Clas Hortien
Member
Member
Posts: 190
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien » 2005-06-02, 07:49 UTC

Hi,

for me it doesn't work as expected :cry: .
I have 9 Files and want to seperate them each in one single directory.
So i run the mover and enter 1 into the "Files per Folder" field.
I then get 5 ( :shock: ) directories, 3 with one file, 1 with 2 files
and 1 with 4 files.

My filenames are :

Code: Select all

DesktopOrganizer(PTBSync)-de.zip
hangman41.ZIP
menuApp104.zip
Mover.zip
procexpnt.zip
ResHack.zip
tclocklight-040702-3.zip
wcx_Mover_eng.zip
xpdfsearch_1.01.zip
The distribution is:

Code: Select all

Dir 01
DesktopOrganizer(PTBSync)-de.zip

Dir 02
hangman41.ZIP

Dir 03
menuApp104.zip
Mover.zip

Dir 04
procexpnt.zip
ResHack.zip
tclocklight-040702-3.zip
wcx_Mover_eng.zip

Dir 05
xpdfsearch_1.01.zip
Please fix this too.

Best regards

Clas

User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus » 2005-06-02, 09:34 UTC

Clas Hortien wrote:Hi,for me it doesn't work as expected :cry: .
I have 9 Files and want to seperate them each in one single directory.
So i run the mover and enter 1 into the "Files per Folder" field.
I then get 5 ( :shock: ) directories, 3 with one file, 1 with 2 files
and 1 with 4 files.
Confirm, I get simular error when splitting 9 files to folders with 1 and 2 files in each folder, when I select 3 or more files in each folder it works.

// Peter

User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 » 2005-06-02, 10:06 UTC

Sorry...,
I have no time at the moment but anyone can modify it ...
Even though I'll try to do it asap
TC#88260 -

User avatar
franck8244
Power Member
Power Member
Posts: 702
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 » 2005-06-03, 07:39 UTC

Here is the corrected version (now splitting is correct :P)

If you want to know : I was increasing the number of file per folder each time a new folder was created, the things is I used the current value-> 1+1 = 2 , 2+2 = 4 , etc :(
TC#88260 -

User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk » 2005-06-03, 12:59 UTC

2franck8244
Great tool. Thanks for it.
It would be nice if it used other languages next to French (at least English) :-)

If I use 'per Date' and select 'day' and 'month' together - it shows an info (I can't understand it - it French) and separate files 'per years'. Why?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl

Post Reply