I want to make a c++ program which scan all drives and generate list of all files and folder.
how can i do it in c++?
Plz help me......
gameon 0 Light Poster
Recommended Answers
Jump to PostWhat have you tried so far?
Jump to PostBe warned that scanning a drive for all files and directories will take a while, depending on how much stuff you have on there.
Jump to Post5 minutes still isn't exactly instant though ;)
Also, if the op wants to do this properly then the op should probably not use the DIR system command, but switch to using the
FindFirstFile
function :)
Jump to PostYou seriously need to learn how to use Google and MSDN.
Here:
FindFirstFile: http://msdn.microsoft.com/en-us/library/aa364418%28VS.85%29.aspx
FindNextFile: http://msdn.microsoft.com/en-us/library/aa364428%28v=VS.85%29.aspx
…
All 13 Replies
Ketsuekiame 860 Master Poster Featured Poster
gameon 0 Light Poster
nbaztec 45 Posting Pro in Training
Ketsuekiame 860 Master Poster Featured Poster
nbaztec 45 Posting Pro in Training
Ketsuekiame 860 Master Poster Featured Poster
nbaztec 45 Posting Pro in Training
gameon 0 Light Poster
nbaztec 45 Posting Pro in Training
gameon 0 Light Poster
gameon 0 Light Poster
Aranarth 126 Posting Whiz in Training
gameon 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.