Can I kindly know if all mmmacro files on a Folder can be played one after the other in some similar fashion like below code? The Reason is that I have like 200 Files on a Folder and they just can keep running one after the other without having to specifically add each file individually. I remove and add many files to it and having to rename the codes and stuff can become exhausting at times.
Each file is a 1 line macro that runs a message prompt with the current time, using the %time% variable.
The simple macro below runs each file. At line 1: Here we initialize the FOR file loop, iterating through each file in the D:\macro\macro_folder directory. At line 2: A FOR line loop runs each line in current file iteration. The %FILE% variable holds the current file path variable. At line 3: We close the for loop for the iteration.
1 | FOR | EACH | FILE IN | D:\Macro\macro_folder | DO 2 | FOR | EACH | LINE IN | %FILE% | RUN 3 | FOR | NEXT