This will return all files on all drives. This is extremely slow and should definitely not be used on network drives. It usually fails and returns an class IllegalFileName error due to eventually hitting a file with a problematic name.
descendants of root folders of drives
This relevance took 84 seconds to successfully return all results on a very basic Windows 2012R2 server that has only single drive that happens to be one of the fastest SSDs in existence, the Intel 750. This could take hours on a spinning drive.
See related posts:
- 2 parts: Find Files vs Dir /s /a ; How to store "find files" results in a file
- File search return error
- Parsing file.txt and if exist one of value in folder
- Trying to exclude a directory from descendants search
- Relevance issues
- IllegalFileName check (or Continuing on Error)
- Regex to find files with social security numbers
- Find a file in the server \ pc