Hi
Can anyone explain how I would do a recursive search of a folder and subfolders and find files that contains *****_pass.zip or ******_fail.zip and then move them. I tried to do this
gci C:\temp\data\output | Where-Object { $_.name -contains "_pass.zip"} | foreach-object { copy-item c:\temp\data\output\$_. C:\temp\data\output\again }all i get is returned to a prompt. I need it to only look for those zip files with pass/fail.zip at the end as there are other folders