for /f "eol=# tokens=1-10* delims=[=,]" %%a in (properties/commands.properties) do (
echo %%a
set p0=%%a&set p1=%%b&set p2=%%c&set p3=%%d&set p4=%%e&set p5=%%f&set p6=%%g&set p7=%%h&set p8=%%i
for /l %%x in (0 1 8) do (
if defined p%%x (
:: call :trim p%%x
echo %%x
)
)
)
Analysis:
eol=# ignore lines starting with #
tokens=1-10* from group 1 to 10*
delims=[=,] use the characters [=,] as mark groups