Image File Search

Posted on 2010-09-19
Last Modified: 2012-05-10
Hello Folks,

I have a folder that contains about 2100 images and within that same folder id like to retrieve about 500 of those images only, id like to know if theirs a technique/Software/Utility that can be used to search for and find all the specified images that i'm looking for?. instead of searching for them 1 by 1..
Question by:Eaddy Barnes
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 33713653
That depends on how you'll search for them?

By whats in the image only? Or by name, date etc?

Assisted Solution

ken2421 earned 125 total points
ID: 33713682
Are you thinking of a sofware solution like this

LVL 11

Author Comment

by:Eaddy Barnes
ID: 33713761
@athomsfere by name, because the dates will generally be the same..
Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

LVL 14

Expert Comment

ID: 33713784
By name, even windows search can help.

* as a wildcard.

So if all your images you want are named xxxxxxLilTommyBDayxxxxxxxxxxx  Where the Xs are random text, search for something like *LilTommy* and it will return any pictures with LilTommy in the name somewhere.

Assisted Solution

vogen earned 125 total points
ID: 33714956
i use following command to search files from windows command line. you can use it too.

dir *.jpg/w/a/s/p/o
dir "imagename.jpg"/w/a/s/p/o

output to text file
dir *.jpg/w/a/s/o > listofimages.txt

/s - Displays files in specified directory and all subdirectories.
/w - Uses wide list format.
/a - Displays files with specified attributes.
/p - Pauses after each screenful of information.
/o -  List by files in sorted order.
LVL 11

Author Comment

by:Eaddy Barnes
ID: 33720165
OK using the * would search for all *.extension or *.whatever trails the astericks.. but my problem isn't the fact that i want to just find images, I want to find only certain image names within a haystack of other images..

1) Let me try to be more specific.. I have over 2k images in a folder.
2) Within that folder are about 187 images that i need to find.
3) the image names aren't similar where i could search by the first part of the image name or last part.jpg.
4) the images are a mix of lower & upper case letters, numbers, underscores & even the (.) period are in some.
5) I have the list of image names that i want from that folder but i can only search the folder 1 image at a time from windows
6) I wanted to know if theirs a way or software that  i could drop all those image names into and the program would find the images that im looking for and then i could just copy them all at the same time from the folder giving me exactly what im looking for.
LVL 14

Expert Comment

ID: 33720480
OK, a vbs script would work best, I will try to look at this a little later and build a script for it.

Basically you can open the list as a txt file for read, and copy that way for each.
LVL 11

Author Comment

by:Eaddy Barnes
ID: 33722454
ahhhh athomsfere, thanks for the effort, i appreciate it..
LVL 14

Expert Comment

ID: 33729248
This should get us headin in the right direction.

Time constraints have delayed this, and so far I have not had a chance to test.
LVL 14

Accepted Solution

athomsfere earned 250 total points
ID: 33729252
Need to paste the work I suppose!

Const ForReading = 1
Dim fso, txtFile1

Set txtFile1 = fso.OpenTextFile("ListofPics.txt", ForReading)

Do Until txtFile1.AtEndOfStream
set filesys=CreateObject("Scripting.FileSystemObject")
If filesys.FileExists("c:\sourcefolder\anyfile.html") Then
   filesys.CopyFile "c:\sourcefolder\anyfile.html", "c:\destfolder\"
End If
LVL 11

Author Closing Comment

by:Eaddy Barnes
ID: 33805492

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question