Presently we have been using the below mentioned script for some activity; but if we have any header of the specific variable list, how could I ignore it (first line of the variable file)...?
setlocal enabledelayedexpansion
set /a n=0
set /a m=0
set /a nline=1
set /a mod=0
for /f %%i in (C:\VariableList\Variable.txt) do (
set /a n=m+1
set /a m=n
set /a mod=m%%%nline%
if !mod! EQU 0 (
run -n -D %%I
if !ERRORLEVEL! NEQ 0 (
goto end
)
)
)
:end
endlocal