ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Organize files into folders based on flename wildcard parsing

<< < (6/16) > >>

skwire:
Give this a test (source/binary included): File Punter

It's not fully feature complete as of yet but the core functionality is in there.  It should be pretty intuitive.

1) Use the top section to create and add your match filters to the list.
2) Checkmark the rows you want to process.
3) Choose your method at the bottom and click Start.  Progress and such is shown in the statusbar.  You can cancel at any time.
4) All checked rows will be processed in order.  You can move highlighted rows up and down through the list with ctrl-up and ctrl-down before clicking Start.
5) You can delete rows by highlighting and pressing delete.
6) The list is saved/loaded automatically when you close/launch the app.  No other settings are saved at this point.

The three methods you can choose from are:

1) Copy files to destination.  Self-explanatory.
2) Move files to destination.  Self-explanatory.
3) Simulation only.  This mode won't touch your files.  It will just create a text report that will show which files matched your filters and their destinations.  You can use it as a sort of "test run" mode.  Keep in mind that if your filter matches a very large number of files, the resulting text file can get pretty large, too.  Depending on path lengths involved, figure about a meg per 9000 lines/matches.

Put it through its paces and let me know how it works out for you.  If it seems solid enough, I'll add in my usual Skwire Empire stuff and release it as a full-fledged app.  Thanks and apologies for the delay in getting this to a release candidate.

DONE: Organize files into folders based on flename wildcard parsing

tomos:
I studied programming waaaay back in the 70's (BASIC, COBOL and FORTRAN on an NCR mini coding onto 80-column  punch-cards!) which, while they are certainly not current languages, should give me some structural guidelines. I've also coded in dBase IV and similar (Foxbase etc.) and in  VBasic. In fact, I ran the very first BBS here in town on a 300 baud dialup modem using a Z80 computer running the entire system in interpreted BASIC!
-mickblu (March 11, 2010, 07:26 PM)
--- End quote ---

Hi Mick,
an off-topic note:
you may be interested in this thread: In rememberance of....The antiquated hardware/software reminiscence thread
Tom

skwire:
As an aside, keep in mind that this has had, obviously, minimal testing.  In other words, I'd make some backup copies of your photos first.   :D

magician62:
Hello, hopefully in this my first post, I get things right.


First Files2Folder is a great utility

The thought I have which may be a new utility or enhancement of the existing.

I often encounter files in the following formats

first part - middle part - last part.extension
or
first part - last part.extension

It would be nice to be able to select a group of files and have the utility folderise by a defined segment, though to make it easier.

option 1
Anything before the first " - "

option 2
Anything after the last " - " (ignoring extension)

There may be other cases, but I suspect it would be more complex to handle.

When run the utility would create folders based on content for the defined option.

If a folder already exists, there is no need to create

Files are then added to the appropriate folder.

In case of duplicates, files are enumerated, or ignored, though in theory this should not happen from an existing folder, but may if further files are added for subsequent processing.


I am guessing there may already be something out there that does this, but I have yet to find it. And then probably nothing with the simplicity of Files2Folder

Thanks in advance

 

skwire:
Hello, hopefully in this my first post, I get things right.-magician62 (February 11, 2011, 08:27 AM)
--- End quote ---

Welcome to DonationCoder.  Thanks for posting and enjoy your stay.

First Files2Folder is a great utility-magician62 (February 11, 2011, 08:27 AM)
--- End quote ---

I'm glad you find it useful.   :)

The thought I have which may be a new utility or enhancement of the existing.

I often encounter files in the following formats

first part - middle part - last part.extension
or
first part - last part.extension

It would be nice to be able to select a group of files and have the utility folderise by a defined segment, though to make it easier.

option 1
Anything before the first " - "

option 2
Anything after the last " - " (ignoring extension)-magician62 (February 11, 2011, 08:27 AM)
--- End quote ---

I think this is well out of scope for Files2Folder but you're in luck.  I have another application that I haven't fully released that should do what you want.  What it lets you is specify source folders and then write a simple regular expression with which you can create destination folders that uses data matched by the regular expression.  If you're not familiar with regular expressions, that description probably won't make much sense so here's an example (based off of yours):

Source folder:         c:\path\to\
Containing files like: first part - middle part - last part.extension
RegEx string:          (.*?) - (.*?) - (.*?).extension
Destination folder:    c:\path\to\??2

Each "(.*?)" represents a matched subpattern.  I've highlighted in red the second matched subpattern and how you could use it to automatically create a destination folder based off of text within the filename.  The app then gives you the option to copy, move or simulate.  Based on the above, it would copy/move said file to the following:

c:\path\to\middle part\first part - middle part - last part.extension

Does that make sense?  Would you be interested in something like this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version