Advertisement

Getting Filename

Started by November 20, 2000 03:17 AM
1 comment, last by El_Bosso 24 years, 2 months ago
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
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )
Advertisement
Here''s something that might help:

  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