There are several problems:
- If you use
/f
, you tell the for-loop to read a file. Don't mix that with commands. - If you use backticks (`), you tell the for-loop to execute a command. You have used straight ticks (')
- If you want to use quotation marks for the file name, use
usebackq
So either use
FOR /F "skip=1 tokens=1-3 delims=," %%A in (C:\ReconfigureSettingsFile.csv) do (commands)
without type
and without quotes or
FOR /F "usebackq skip=1 tokens=1-3 delims=," %%A in ("C:\ReconfigureSettingsFile.csv") do (commands)
without type
but with quotes or
FOR "usebackq skip=1 tokens=1-3 delims=," %%A in (`type "C:\ReconfigureSettingsFile.csv"`) do (commands)
with type
but without /F
.
Don't forget to use %%A
, %%B
and %%C
in the commands.