|
Post by garryg on Feb 26, 2018 6:15:24 GMT
Hi,
First Thread! I've been a long user of MMM, its helped me out heaps. I have a question on using INTEGER variables to increment file names.
I have a macro that I have scheduled to run periodically. The macro takes some data based on some conditions from my table and writes them to a file. I would like to add the ability to increment the file name by 1 on each write
Can I do this will Mini Mouse Macro?
|
|
|
Post by Steve on Mar 1, 2018 21:48:42 GMT
Hi Garry,
This can be done by incrementing the %INTEGER% variable by one and adding that variable to your output condition statement. You would need to enable variable saves from the Settings-Variable menu.
Something like this:
1 | RUN ACTION | | | | DEFINE INTEGER VARIABLE | %INTEGER%::+1 2 | RUN ACTION | | | | RUN VIA CMD /C | echo %STRING% > %INTEGER%.CSV
Hope this helps, Steve.
|
|