Please let me know a function that will let me know all the files and FOLDERS in a directory.......i repeat including the folders....i tried FindFirstFile() and FindNextFile() but ended up getting only files.........not folders.....
Directory winapi functionsa function that would let me know all the files AND FOLDERS in a direc
Page 1 of 1
4 Replies - 1376 Views - Last Post: 13 January 2010 - 11:54 PM
Replies To: Directory winapi functions
#2
Re: Directory winapi functions
Posted 13 January 2010 - 11:05 AM
Try this snippet:
http://www.dreaminco...snippet2295.htm
You can even use "dirent.h" to get all contents of a folder.
http://www.dreaminco...snippet2295.htm
You can even use "dirent.h" to get all contents of a folder.
#3
Re: Directory winapi functions
Posted 13 January 2010 - 12:06 PM
The trick is the path parameter you pass to FindFirstFile(). If you pass *.* then it will get the directories as well as files. Pass anything else and only files/folders that match the pattern will be returned.
#4
Re: Directory winapi functions
Posted 13 January 2010 - 11:50 PM
thank y'all..............the trick is enough and useful for me.........don't hav lotta $$$
This post has been edited by Manas_4m_BlackDeath: 13 January 2010 - 11:51 PM
#5
Re: Directory winapi functions
Posted 13 January 2010 - 11:54 PM
Page 1 of 1

New Topic/Question
Reply



MultiQuote




|