jj2007 thank you.
"You need to send a message to the progress bar from the loop where you find the directories. SetTimer is not the right approach..."
I try to organize the message - not exactely shure what kind of msg..
----------------
I made the directory selection a bit easier...
CreateDirArray proc
pushad
xor eax,eax
mov eax,wfd.dwFileAttributes
AND eax,16
;push eax
;INVOKE MessageBox,0,offset wfd.cFileName,offset cur_path,0
;INVOKE wsprintf,offset wsprintf_msg,offset testintdd,wfd.dwFileAttributes
;INVOKE MessageBox,0,offset wsprintf_msg,offset cur_path,0
;pop eax
;.if eax == 16 || eax == 17 || eax == 18 || eax == 19 || eax == 22 \
; || eax == 48 || eax == 50 || eax == 51 \
; || eax == 8208 || eax == 8212 || eax == 8214 || eax == 8240 || eax == 9238
.if eax != 0
;Above I included AttribValue 8212 - The count is different now - much higher
;INVOKE MessageBox,0,offset wfd.cFileName,offset cur_path,0
;--- Clean array ----
"
"
----------------
Have a good one