get files in a folder and more

This is a discussion on get files in a folder and more within the Windows Programming forums, part of the Platform Specific Boards category; Hi, How do i get the all files/folders in a given path (1 level so not files in the folders)? ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    45

    get files in a folder and more

    Hi,

    How do i get the all files/folders in a given path (1 level so not files in the folders)?
    Also check if an item is a file or a folder?

    All in win32

    Cheers
    Alex

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>All in win32<<

    Please post your windows specific questions in the windows board. Moved.

    edit: This thread discusses the same thing:

    How to get names of folders in specific folder
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    11
    try out dirent.h and the function 'findnext()'
    It may help

Popular pages Recent additions subscribe to a feed

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