0

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

1 Answers1

0

Innovative Idea, if you filter some query by Find c:\windows\system32\find "Z",though it's not necessary because it's already coming into the simple query result (for which is common into the all variable), and then use c:\windows\system32\find /V "X/Y/Z", though it's not require to get your desire result (for which is not common into the all other variable); magically Header part will be Vanished.