Re: More elegant code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





I used Dir to do something similar.
I just didn't move duplicates but it would be easy to add a -something after
the file name to show it is a duplicate.
I used code rather than queries because I wanted to add the name of the file
to both a field that referenced it and a field that contained a name for the
picture.
C:\someFolder\FredSmith.jpg was stored as is and used to point to the
picture.
FredSmith (more likely 12234566) was added as the picture name.
The user could then leave it or make it meaningful.

bhammer wrote:
Jeff,

Thanks for the interest. It's an image database. One database per
(unrelated) Project. The user needs to be able to copy new image
files (as they periodically become available) to a destination folder
containing the images previously cataloged for this particular
project. The copying is done via a wizard I am creating.
BrowseForSourceFolder creates the New Images list. A Destination
folder is browsed to to find the collection folder for the project.
The new images files will be added to it. A CopyImages function does
the file copy work. Another button will catalog the filenames into
the database Images table.

The problem to solve is this: It is possible that sometimes the image
filenames will be identical to those already in the database (and the
collection folder), so I need to have a button the check for
duplicates prior to copying the files and prior to appending the
Images table. The result of the check is simply a display of the
duplicate filenames (or none, and emplty list) to let the user have
feedback. If duplicates exist, then the user is directed to rename
the offending files.

I have this wizard working already, but it seems clunky to me. It
feels like I'm missing a more elegant solution to the whole thing.


.



Relevant Pages

  • Re: Searching a drive and copying files
    ... Unison, net/unison port, should be able to handle the duplicates ... rename corrupt images into this dir. ... shift @names; ... sub compare_as_text ...
    (freebsd-questions)
  • Re: More elegant code
    ... It's an image database. ... they periodically become available) to a destination folder containing the ... BrowseForSourceFolder creates the New Images ... If duplicates exist, then the user is ...
    (microsoft.public.access.formscoding)
  • Re: Tidying up computer files
    ... There is a clever program I came across that does more than that. ... duplicates of images that have undergone editing or re-sizing. ... You could also get a thumbnail viewer and set it to display the ...
    (uk.legal)
  • Re: Image comparison
    ... There are programs that search through a large collection of files and find duplicates. ... Are there programs or algorithms that will do something similar for images and still recognize one image as the same if it has been scanned with different resolutions, colour corrections, quality of compression, mirror imaged, and the like? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Clearing up mess made by FrontPage
    ... The more I thought about it the more I was coming to that opinion myself. ... Confirmation is always nice though 8-) ... No only does FP clutter the markup with propriety and deprecated code, but is also duplicates and duplicates and *duplicates* images used in the site and for their 'themes' support! ...
    (alt.html)