We help IT Professionals succeed at work.

Exclude folder paths from file search of Windows drive

How can I perform a search within Windows 10 that searches an entire drive but excludes a particular folder path within this drive?

For example I would like to search for .mp3 files within the S: drive while excluding the S:\files\music folder. How can this be done?
Comment
Watch Question

Senior Consultant
Awarded 2017
Distinguished Expert 2018
Commented:
Please try
ext:.mp3 NOT Folder:"S:\files\music folder"

Open in new window

More keywords here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa965711(v=vs.85).aspx