Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 848097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:53:24+00:00 2026-05-15T06:53:24+00:00

We have a images folder which has about a million images in it. We

  • 0

We have a images folder which has about a million images in it.
We need to write a program which would fetch the image based upon a keyword that is entered by the user.
We need to match the file names while searching to find the right image.
Looking for any suggestions.
Thanks
N

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:53:25+00:00Added an answer on May 15, 2026 at 6:53 am

    Depending on the operating system, I suggest you use Indexing Service, Windows Desktop Search, or the latest version of Windows Search. This solves your problem of file lookup based on keyword, it addresses the performance issues in regards to the number of files within a folder, it is scalable, and easily extended.

    The DSearch sample at http://msdn.microsoft.com/en-us/library/dd940335(VS.85).aspx does almost exactly what you want and is easy to implement.

    For example, if querying a million files and need to move file into subfolders to increase performance then you can simply create the folders and move the files. You will not need to change any code.

    If you need to change how keywords are applied, such as using the keywords of the file’s summary properties, then you only need to change the query.

    For the later operating systems, you do not even need to install any software because the search feature is part of the operting system and available through OleDB. If you want to use Advance Query Syntax (AQS), Microsoft provides a typed-library to access the COM Interfaces that make it easy to generate the SQL command to query the index database.

    Honestly, all these other suggestions about databases, and so on, are a waste of time.

    • MSDN search of windows search at http://social.msdn.microsoft.com/Search/en-US?query=windows+search

    • Related Search Technologies to Windows Search at http://msdn.microsoft.com/en-us/library/bb286798(VS.85).aspx

    • Searching a million files in one folder is going to be prohibitive slow. (See my response at Directory file size calculation – how to make it faster? for Directory file size calculation – how to make it faster?.

    • I can search my hard drive of ~300,000 files for *tabcontrol.cs” in less that a second The first query takes approx. 4000ms and each query, using a different search term, after the first one takes 300-600ms.

      • I just updated from “Indexing Service” to “Windows Search” and I can search 300,000 files over 58GB for “filename: tabcontrol” in 1.25 seconds with subsequent searches taking 0.13 to 0.26 seconds.
    • See the DSearch sample at http://msdn.microsoft.com/en-us/library/dd940335(VS.85).aspx for how easy this is to implement.

    • “Searching the Desktop” at http://blogs.msdn.com/b/coding4fun/archive/2007/01/05/1417884.aspx

      Searching for a file across a hard drive is a slow, tedious operation. Learn how to take advantage of the Windows Desktop Search API and database to find files very quickly. Add innovative new features to your applications using the search capabilities built-in to Vista and available for Windows XP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder C:\Images which has a some images. This folder is not
I have a folder called Etc which has an image I want to use
I have a image folder which contains sub directory for each album of images
I have 1000 images in a Folder, which has SKU# word in all the
I have an iPad application which has many categorized images I need to switch
I have a folder in my WPF app Images that has several .png files
I have a tree view which has a folder icon by default and once
I have a folder which is in my machine right now and has some
I have a php file which has the following path Shubhmangalam/admin/welcome_image_edition/delete_image.php and an image
I have created an app which has a library of images. I have imported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.