Getting Filename
Hi,
Can anybody explain me, how I can get the name of the files in an specific Directory. I need it for a installation routine, and don''t want to hardcode all filenames.
Thanks in advance
You might wanna look into the MSDN with the keywords..
_findfirst() _findnext()
something with _filebuffer().
cya,
Phil
Visit Rarebyte!
and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states
_findfirst() _findnext()
something with _filebuffer().
cya,
Phil
Visit Rarebyte!
and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )
Here''s something that might help:
Hope this helps!
-------------------------------
"Mind your own damn business!!!" - Gladiator
..-=gLaDiAtOr=-..
WIN32_FIND_DATA wfd;HANDLE hFind;hFind = FindFirstFile( "C:\\*.*", &wfd );do{ // Do whatever with the filename, which is in wfd.cFilename // i.e. LinkedList->Add( wfd.cFileName );} while(FindNextFile(hFind, &wfd);FindClose(hFind);
Hope this helps!
-------------------------------
"Mind your own damn business!!!" - Gladiator
..-=gLaDiAtOr=-..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement