gsivaram 0
Newbie Poster
Recommended Answers
Jump to Postcd \ dir /s
:)
How do you want the files? Name only or with path. What os are you using?
Jump to PostThe (by far) easiest way to do this is really:
int main() { system("cd\\"); system("dir /s > temp.txt"); }
and all the details are in temp.txt. :)
But if you want to do it the right way, you might want to look at FindFirst() and FindNext().
All 5 Replies
Nick Evan 4,005
Industrious Poster Team Colleague Featured Poster
gsivaram 0
Newbie Poster
Nick Evan 4,005
Industrious Poster Team Colleague Featured Poster
gsivaram 0
Newbie Poster
DangerDev 107
Posting Pro in Training
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.