Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

moving files based on file size

$
0
0

Hi All,

 

Here is my issue: I have 1.3 million documents that were scanned to pdf, unfortunately a lot are blank pages so I want to move the blanks to a separate file. I was wondering if it is possible to use the move-item cmdlt with a parameter to only move files that are less than 550kb and if so than where would it be placed in the script. 

current script: 

move-item -path "\\qnapnas02\DIGBACKUP\FX Images for Processing" -destination "\\qnapnas02\DIGBACKUP\FX Images for Processing\blank pages" -Recurse

 

thanks in advance


Viewing all articles
Browse latest Browse all 6937

Trending Articles