Thread: Folder list?

  1. #1
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227

    Folder list?

    How do all of the virus scanners find all of the folders on your computer to scan? Is there like a master list pointing to all of the folders, or is it something else? Cause I am tryin to make a simple program that just counts up all of the files on the C: drive, bt cant think of how to access all of the folders. -btw runnin xp home
    Keyboard Not Found! Press any key to continue. . .

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    580
    There are several ways of doing this. The windows API has various functions associated with finding folders and tracking files (as well as getting the next file in a folder, etc).

    This should answer all of your questions, just read around a bit

    http://msdn.microsoft.com/library/de...tdirectory.asp

    edit:
    if you go to the bottom of the page, where it says 'see also', it contains more info which is more pertinent to what you want. It's really just a matter of finding the right windows api functions to call (this question might've been better suited to the windows programming forum).
    See you in 13

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Ever considered something novel, like oh I don't know, lets say A FAQ
    http://faq.cprogramming.com/cgi-bin/...&id=1044780608
    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.

  4. #4
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    oh sorry, didnt think something like this would be in the faq, thank you darkness
    Keyboard Not Found! Press any key to continue. . .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM