CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Location
    Madrid - Spain
    Posts
    28

    Question A folder's file count. (How do I know how many files has a folder?)

    Hi there!

    The application I'm writting has to notify (via UDP) whenever a new file has been added to a specified folder.

    How do I know that a new file has been added to the folder?

    I suppose there's no way but polling...

    But, how do I have to poll?

    Is there a lighter way than "WIN32_FIND_DATA FindFirstFile + FindNextFile"?

    It would be perfect to be able to retrive some kind of "folder attribute" containing a file count, or something like that... But what & how? Does this exist?

    Any possibilities?

    Thank you very much,

    Ricardo Vázquez.
    Madrid, Spain.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

    Re: A folder's file count. (How do I know how many files has a folder?)


  3. #3
    Join Date
    Jun 2002
    Location
    Madrid - Spain
    Posts
    28

    Re: A folder's file count. (How do I know how many files has a folder?)

    8-O

    Awesome!!

    That is exactly what I needed!

    Thank you very much indeed!

    Best regards,

    Ricardo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured