Folder list?

This is a discussion on Folder list? within the C++ Programming forums, part of the General Programming Boards category; How do all of the virus scanners find all of the folders on your computer to scan? Is there like ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,654
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 08: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, 04:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM

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