pass more than one argument to countfiles

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

pass more than one argument to countfiles

Post by migro » Sun Jul 24, 2016 3:27 am

I want to count all files in one directory which matches the following extensions (.bmp, .tif, .jpg).
Is it possible to pass a group of filetypes as an argument to countfiles?
What I want is to avoid looping 3 times to the directory in this case.
regards
migro

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: pass more than one argument to countfiles

Post by Marcus Tettmar » Mon Jul 25, 2016 1:26 pm

No, sorry, you'd need to use CountFiles for each filetype and sum the results.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Re: pass more than one argument to countfiles

Post by migro » Mon Jul 25, 2016 8:56 pm

Hi Marcus!

Thanks for the reply. Thats what I'm doing in the moment.

Can you take: "Passing several filetypes/extension to countfiles" as an feature request for later/upcoming versions?
regards
migro

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts