title: How to run a progress bar for a disk scanning process in C#?
body: <p>Recently I have started to create a desktop based application which is for the scanning the PC. I have achieved this and it works great. However i would like to add a progress bar so that the user may know the amount of progress in a scan the application has done.</p>
  
  <p>I have worked on using a progress bar for normal functions where the Minimum value and Maximum values are known. But during the scan process I have the minimum value as 0 but how can i assume the maximum value?</p>
  
  <p>I tried counting all the files inside a particular drive but its not that efficient moreover there are few directories permission to accessing which are denied. So how can I go up with getting the Maximum value for the scan. How can i make the Progress bar work for this particular situation. I have seen many application where once the process ends the progress bar is also at the ending stage.</p>