i know how to increase a progress bar for each item I am going to be performing my actions on (like file copy)
but overall how can I find out the progress?

the way its working now is:

create an array of file extensions I wish to find of files
foreach currentExtention in the extentions

get files in specific directory of the extension current extension
foreach current file in theFiles found

increase progBar

next

next


but what about doing overall progress?
one way was to do that but get the total number of files found, set that as a maxvalue of the totalProgBar then increment that on each file copy but that would be bad practice