| View previous topic :: View next topic |
| Author |
Message |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Tue May 31, 2005 12:54 am Post subject: Packer plugin to separate files per number or date ... |
|
|
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 )
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
That's all...
Download here
(source included) _________________ TC#88260 -
Last edited by franck8244 on Sat Mar 15, 2008 4:34 am; edited 1 time in total |
|
| Back to top |
|
 |
sqa_wizard Power Member


Joined: 06 Feb 2003 Posts: 2597 Location: Germany
|
Posted: Tue May 31, 2005 1:07 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
petergus Member


Joined: 06 Feb 2003 Posts: 164 Location: Sweden, Enköping
|
Posted: Wed Jun 01, 2005 12:22 am Post subject: Re: Packer plugin to separate files per number or date ... |
|
|
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 |
|
| Back to top |
|
 |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Wed Jun 01, 2005 1:40 am Post subject: |
|
|
| 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
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
the link is the same, source code and french version can be found near the zip file... _________________ TC#88260 - |
|
| Back to top |
|
 |
gbo Senior Member


Joined: 31 Mar 2005 Posts: 317 Location: Lausanne (Switzerland)
|
Posted: Wed Jun 01, 2005 2:57 am Post subject: |
|
|
Correct link to download the new version :
http://fgartemann.free.fr/TCMD/Plugins/Mover/Mover.zip
| Quote: | | 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
Gil's Photography
90% of coding is debugging. The other 10% is writing bugs. |
|
| Back to top |
|
 |
petergus Member


Joined: 06 Feb 2003 Posts: 164 Location: Sweden, Enköping
|
Posted: Wed Jun 01, 2005 8:15 am Post subject: |
|
|
| franck8244 wrote: | | petergus wrote: | | Separate files depending on filetype | Added  |
Nice, thanks!
I found a bug, if a file don't have a filetype, file gets deleted.
// Peter |
|
| Back to top |
|
 |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Wed Jun 01, 2005 8:24 am Post subject: |
|
|
| petergus wrote: | | I found a bug, if a file don't have a filetype, file gets deleted. |
Corrected , files without type (extension) will not be moved...
I hope you haven't lost important data... _________________ TC#88260 - |
|
| Back to top |
|
 |
Lev Junior Member


Joined: 14 Dec 2004 Posts: 82
|
Posted: Wed Jun 01, 2005 11:02 am Post subject: |
|
|
The next step would be to separate files by a content plugin field  |
|
| Back to top |
|
 |
Spine New Member

Joined: 21 Jan 2005 Posts: 1 Location: Belarus
|
Posted: Wed Jun 01, 2005 9:30 pm Post subject: |
|
|
| It is necessary that together with files descriptions from files.bbs and descript.ion moved. |
|
| Back to top |
|
 |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Wed Jun 01, 2005 11:38 pm Post subject: |
|
|
| 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 - |
|
| Back to top |
|
 |
Clas Hortien Member


Joined: 03 Mar 2003 Posts: 186
|
Posted: Thu Jun 02, 2005 1:49 am Post subject: |
|
|
Hi,
for me it doesn't work as expected .
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 ( ) directories, 3 with one file, 1 with 2 files
and 1 with 4 files.
My filenames are :
| Code: | 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: | 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 |
|
| Back to top |
|
 |
petergus Member


Joined: 06 Feb 2003 Posts: 164 Location: Sweden, Enköping
|
Posted: Thu Jun 02, 2005 3:34 am Post subject: |
|
|
| Clas Hortien wrote: | Hi,for me it doesn't work as expected .
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 ( ) 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 |
|
| Back to top |
|
 |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Thu Jun 02, 2005 4:06 am Post subject: |
|
|
Sorry...,
I have no time at the moment but anyone can modify it ...
Even though I'll try to do it asap _________________ TC#88260 - |
|
| Back to top |
|
 |
franck8244 Power Member


Joined: 06 Mar 2003 Posts: 699 Location: Geneva...
|
Posted: Fri Jun 03, 2005 1:39 am Post subject: |
|
|
Here is the corrected version (now splitting is correct )
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 - |
|
| Back to top |
|
 |
djk Power Member


Joined: 17 Mar 2003 Posts: 1651 Location: Poland
|
Posted: Fri Jun 03, 2005 6:59 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|