I have a batch script which uses the FOR command to read a file of parameters. The parameters are 2 per line and separated by a semicolon. How can determine if a semicolon was not used? Here is what I've tried so far:
for /F "tokens=1,2,* skip=1 delims=;" %%A in (%1) do (if %%B == "" echo missing semicolon) It would be nice if I could also distiguish between a missing semicolon and a missing second parameter.