I\'ve written the following script to move all MP4 file in a particular folder to the Root folder, however I want the script to ignore one particular folder called \"Camera\". I
-exclude is to filter filename or extension I dont think you can use it to filter directories. You can try this :
-exclude
gci c:\root\*.mp4 -recurse |where {$_.fullname -notmatch "camera"}