Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Packer plugin to separate files per number or date ...
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Tue May 31, 2005 12:54 am    Post subject: Packer plugin to separate files per number or date ... Reply with quote

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 Razz)

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 Razz
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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2597
Location: Germany

PostPosted: Tue May 31, 2005 1:07 pm    Post subject: Reply with quote

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 Smile
_________________
#5767 Personal license
Back to top
View user's profile Send private message
petergus
Member
Member


Joined: 06 Feb 2003
Posts: 164
Location: Sweden, Enköping

PostPosted: Wed Jun 01, 2005 12:22 am    Post subject: Re: Packer plugin to separate files per number or date ... Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Wed Jun 01, 2005 1:40 am    Post subject: Reply with quote

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 Wink
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 -
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
gbo
Senior Member
Senior Member


Joined: 31 Mar 2005
Posts: 317
Location: Lausanne (Switzerland)

PostPosted: Wed Jun 01, 2005 2:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
petergus
Member
Member


Joined: 06 Feb 2003
Posts: 164
Location: Sweden, Enköping

PostPosted: Wed Jun 01, 2005 8:15 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Wed Jun 01, 2005 8:24 am    Post subject: Reply with quote

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

Corrected Razz , files without type (extension) will not be moved...

I hope you haven't lost important data...
_________________
TC#88260 -
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Lev
Junior Member
Junior Member


Joined: 14 Dec 2004
Posts: 82

PostPosted: Wed Jun 01, 2005 11:02 am    Post subject: Reply with quote

The next step would be to separate files by a content plugin field Wink
Back to top
View user's profile Send private message Send e-mail
Spine
New Member
New Member


Joined: 21 Jan 2005
Posts: 1
Location: Belarus

PostPosted: Wed Jun 01, 2005 9:30 pm    Post subject: Reply with quote

It is necessary that together with files descriptions from files.bbs and descript.ion moved.
Back to top
View user's profile Send private message
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Wed Jun 01, 2005 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Clas Hortien
Member
Member


Joined: 03 Mar 2003
Posts: 186

PostPosted: Thu Jun 02, 2005 1:49 am    Post subject: Reply with quote

Hi,

for me it doesn't work as expected Crying or Very sad .
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 ( Shocked ) 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
View user's profile Send private message
petergus
Member
Member


Joined: 06 Feb 2003
Posts: 164
Location: Sweden, Enköping

PostPosted: Thu Jun 02, 2005 3:34 am    Post subject: Reply with quote

Clas Hortien wrote:
Hi,for me it doesn't work as expected Crying or Very sad .
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 ( Shocked ) 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Thu Jun 02, 2005 4:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
franck8244
Power Member
Power Member


Joined: 06 Mar 2003
Posts: 699
Location: Geneva...

PostPosted: Fri Jun 03, 2005 1:39 am    Post subject: Reply with quote

Here is the corrected version (now splitting is correct Razz)

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 Sad
_________________
TC#88260 -
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
djk
Power Member
Power Member


Joined: 17 Mar 2003
Posts: 1651
Location: Poland

PostPosted: Fri Jun 03, 2005 6:59 am    Post subject: Reply with quote

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

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group