iterations
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
iterations [2015/05/01 09:06] – created dmitry | iterations [2019/10/30 18:11] (current) – removed dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Iterations ===== | ||
- | Currently iterations are not natively supported in EasyMorph, although they are possible with a simple workaround. | ||
- | |||
- | * Setup EasyMorph project so that it takes, say, input.csv and produces output.csv | ||
- | * Generate a list of files to process in EasyMorph | ||
- | * Iterate through this list: | ||
- | * Take one file from the list and copy it as input.csv | ||
- | * Run the EasyMorph project | ||
- | * Rename output.csv and copy it to a designated output directory | ||
- | |||
- | Below is an example of a batch file that does exactly this: | ||
- | |||
- | @echo off | ||
- | setlocal EnableDelayedExpansion | ||
- | SET pathEasyMorph=C: | ||
- | SET pathInputFolder=.\ | ||
- | SET pathOutputFolder=.\ | ||
- | | ||
- | for /f " | ||
- | copy /Y " | ||
- | %pathEasyMorph% /c /run "my project.morph" | ||
- | copy /Y output.csv " | ||
- | echo Processed: %%a | ||
- | ) | ||
- | |||
- | === See also === | ||
- | |||
- | * [[http:// |