//I have reduced the code (x is a counter of loop) char *p = Path[x]; //p have the next directory in the list if(p[strlen(p) - 1] != '\\') { strcpy(p,p); strcat(p,"\\"); } char *FileName = p; strcpy(FileName,FileName); strcat(FileName,FindFileData.cFileName); x++; Path[x] = FileName; // add the directory to the list
Path
p
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)