I have a batch for loop with a The syntax of the command is incorrect
error.
I am reading a file
setlocal EnableDelayedExpansion
set /a filecnt=1
set /a emptylist=1
for /f "delims= " %%x in ('type "%execution_list_file%"') do (
set /a emptylist=0
echo File number !filecnt! >> %logfile% 2>&1
set /a sleepcnt=0
set /a found=0
::call :lookup
set /a filecnt=!filecnt!+1
)
My file has a bunch of file paths in it likes this:
\\VDI\Prod\Dataloads\PROD\FileName01.csv
\\VDI\Prod\Dataloads\PROD\FileName02.csv
What is wrong with my syntax?