Game Development Community

Noob easy question - Directory searching

by Steven Zuccaro · in Technical Issues · 12/30/2004 (10:54 am) · 3 replies

Trying to loop through a directory and get all files and sub drectories
in the process. If anyone has any inclination of how or what function
i should be using please point me in the right direction. I have googled
and goggled to no avail. Using VC 6++.

#1
12/30/2004 (11:27 am)
IIRC, on windows you can use the FindFirstFile/FindNextFile family functions for this. Look 'em up on MSDN.

There might be a simpler way - it's been a long time since I've bothered with directories on MS operating systems. :)
#2
12/30/2004 (11:30 am)
If you can handle a little vb script you can do a search on the 'File System object'.

With that you can search directories, folders, files etc. move them, change them, rename them etc..

Edit: you can use FSO with c++ too.
just do a search on msdn.microsoft.com

Re-Edit: Actually not sure if you can access it in c++ I know you can access it in vbscript and javascript or you can access in general VB.

Here's a link that migh be helpful
Here
#3
12/30/2004 (12:02 pm)
Thnks all