Filter by file size

Post Reply
FabianF
Newbie
Posts: 3
Joined: Sun Nov 18, 2018 9:56 am

Filter by file size

Post by FabianF »

I would like to make a filter where files over 100 Mb is sent to one path and files under 100Mb to another, but I find no way to do it. It seems it should be something simple, could someone point me in the right direction?
User avatar
magnussandstrom
Advanced member
Posts: 342
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Filter by file size

Post by magnussandstrom »

FabianF wrote: Tue Jan 31, 2023 1:18 pm I would like to make a filter where files over 100 Mb is sent to one path and files under 100Mb to another, but I find no way to do it. It seems it should be something simple, could someone point me in the right direction?
Define conditions with variables:
[Job.ByteCount] Less then 100000000
[Job.ByteCount] Equal or more then 100000000
patej
Member
Posts: 78
Joined: Sun Nov 25, 2012 12:15 pm

Re: Filter by file size

Post by patej »

You can use the [Job.ByteCount] variable in a condition with variables so you have to convert MB to Bytes first (100 MB = 104875600 bytes):
Image
FabianF
Newbie
Posts: 3
Joined: Sun Nov 18, 2018 9:56 am

Re: Filter by file size

Post by FabianF »

magnussandstrom that's the simple solution I was looking for – thanks!
Post Reply