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?
IT GuyNetwork EngineerAsked:
Who is Participating?
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
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
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.