Count number of files in a folder and save to a variable
There’s not a direct command to do this, but here’s how it can be done. I have listed the commands that you will need in order to do this. The last one just displays the count in a text box. The macro is just looping through all files in a folder and the variable is being incremented by one for each file.
Variable Set Integer %N1% to 0
Repeat with Folder
Variable Modify Integer: %N1% = %N1% + 1
Text Box Display: Files in folder
– Applies to: Macro Express and Macro Express Pro