Example of "PreEveryForecast.bat"

This batch file is executed before every forecast calculation. It checks if the series has been set to import data before doing the forecasts, positional parameter 6. If so it runs the ImpADOv4.exe.

set ARGGROUP=%3

set ARG=%6

 

rem Clean all the ” around import protocol name

set ARGGROUP=%ARGGROUP:"=% 

 

rem Write the argument to a text file so you can see how they look

echo %ARGGROUP% %ARG% > Parameters.txt

goto %ARG%

:"PREFORECASTIMPORT"

"C:\Program Files (x86)\Aiolos\Bin\ImpADOv4.exe" /stop /load /importgroup:%ARGGROUP%

goto fileend

:"Other Argument"

Do something her!

goto fileend

: fileend