"Searching" for an answer

This is a discussion on "Searching" for an answer within the C++ Programming forums, part of the General Programming Boards category; I am trying to make a program that will search the computer and any storage devices plugged into for specific ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    11

    Question "Searching" for an answer

    I am trying to make a program that will search the computer and any storage devices plugged into for specific files, like .txt or .mp3.
    First what would be the best code to use, and where would be a good place to learn more about this type of program?

    Thanks.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,334
    Well to start with, which OS and compiler are you using?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    11
    I am in windows, and using Microsoft visual studio 2008, and i should have said what language would be best instead of code, I'v really only worked with C++. I am not afraid to try others though.
    Last edited by mjb2287; 06-26-2010 at 03:49 AM. Reason: typos

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,334
    Start with a list of drive / devices
    win32 enumerate drives - Google Search

    Your choice of language doesn't really matter.
    It's the APIs provided by your OS which matter.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hi, Quiz C program Assignment updated
    By Eman in forum C Programming
    Replies: 19
    Last Post: 11-22-2009, 03:50 PM
  2. Stupid problem probably has a stupid answer...
    By hardcorpsems in forum C Programming
    Replies: 2
    Last Post: 11-01-2009, 05:15 AM
  3. Replies: 4
    Last Post: 10-29-2003, 12:18 PM
  4. getting weird answer when not using ".h"
    By CobraCC in forum C++ Programming
    Replies: 10
    Last Post: 05-07-2003, 06:21 AM
  5. Replies: 22
    Last Post: 11-08-2001, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21