Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving numbered files
#1
I'm very new to QM and macros in general really, and I need some help using a macro to save numbered files.

For example, the macro edits a file (I think I can simply record this part), it then opens the "Save As..." window, and types in the file name.

Is it possible to put a number at the end of the file name that goes up each file? So the files would be:

name0001
name0002
...
name0010
name0011
...

And so on.
#2
Macro
Code:
Copy      Help
int i; str s
str basename="name"
for i 0 20
,s.format("%s%04i.txt" basename i)
,out s
,


Forum Jump:


Users browsing this thread: 1 Guest(s)