Hello I've a problem with this batch script , it does not work:
set OUTdir=../output
@echo on
:: ex nFun tol M Nt print
:: nFun: numero di funzione test [1,...,7]
:: tol: error tolerance
:: M: ridotta di ordine 2*M+1
:: Nt: Numero di valori della funzione inversa
:: print: 1 (to print the header) 2(to print the end of the header) 0 or nothing( to print just output values)
SET /A y=1
set /A max=16384
FOR /L %%x IN (32,1,%max%) DO (
IF %y% EQU 1 (
ex 1 1e-9 %%x 25 %y% > %OUTdir%\out_F01_times_9.txt
set /A y=0)
ELSE (
if %y% EQU 0 if %%x LSS %max% (
ex 1 1e-9 %%x 25 0 > %OUTdir%\out_F01_times_9.txt )
ELSE (
ex 1 1e-9 %%x 25 2 > %OUTdir%\out_F01_times_9.txt ) )
)
ex is a program and the other numbers are parameters by command line.
Could you help me? I'm trying to create a batch to execute ex program with different parameters.
The error is ELSE IS NOT RECOGNIZED AS EXTERNAL OR INTERNAL COMMAND