In case you mean that you want to scan the entire hard disk you can find lots of sample code on the internet.
This[
^] is just one example. To find all files just use a filter of '*.*' where required. Make sure to allow for locked/system files, use
try...catch
blocks and initially catch all exceptions. Make a note of all the ones that you get and add specific handlers for those as they occur.