get all folder names ?
-
How can I get all folder names if specified folder, lets say "c:\new folder\" I want names of the all folder in new folder
-
How can I get all folder names if specified folder, lets say "c:\new folder\" I want names of the all folder in new folder
Hello VCD, You can use - CFileFind::FindFile()[^] and CFileFind::FindNextFile()[^] to iterate through all files and folders in specified folder. Call CFileFind::IsDirectory()[^] to check whether the current found file/folder is a directory. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
How can I get all folder names if specified folder, lets say "c:\new folder\" I want names of the all folder in new folder
You can us of FindFirstfile and see an example of this function:Code for finding out the total number of files & folders existing in a folder through VC++[^].
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
How can I get all folder names if specified folder, lets say "c:\new folder\" I want names of the all folder in new folder