This will not give you directories containing at least 1mb, this will give you files of at least 1mb, which does not sound like what you want.
See this:
(pathname of it, size of it / (1024*1024)) of descendants whose(size of it > 0 AND pathname of it as lowercase does not start with "p:\temp\") of folder "P:\"
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