File Count Script

Post Reply
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

File Count Script

Post by wilsonj »

I'm trying to get an accurate count of the number of files being received into all of our Switch flows, and scripting seems to be a good way to accomplish this.



Unfortunately, I'm just getting into the scripting side of things and haven't been able to find any resources detailing how to count files passing through a folder.





It seems as though this would be something someone else had come across before, since the Statistics panel in Switch will only tell the average time of files in a folder/state.



Has anyone had a pass at this before, or could maybe point me in the right direction?
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

File Count Script

Post by dkelly »

Switch's statistics will show number of files processed. Enable stats on just the input folder(s), start flow, show stats window, reset stats and start running jobs. Make sure you refresh the stats before trying to interprets values.
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

File Count Script

Post by wilsonj »

Thank you - that looks like it will do the trick. I'll just have to be certain to keep on top of the reset function to get the number of files in a certain time period.
Post Reply