Very happy to help, we’re however not a script writing service.

powershell uses ‘-lt’ (less than) or ‘-gt’ (greater than)

go get the size you get the ‘length’ attribute.

e.g.

Get-Childitem $path |
where-object {$_.length -gt 10240 -and $_.length -lt 1024} |
copy-item -destination $destinationPath -verbose

Give it a try, if you get stuck, feel free to post the code you have tried.

If you post code, please use the ‘Insert Code’ button. Please and thank you!

codebutton_small.png

5 Spice ups