set input=AAA,BBB,CCC,DDD,EEE,FFF
set nth=1
for /F "tokens=%nth% delims=," %%a in ("%input%") do set nthstring=%%a
echo %nthstring%
pause
set Configkey="Key1"
for /f "tokens=1,2 delims==" %%i in (config.ini) do (
if "%%i"==%Configkey% set value=%%j)
echo Key1 value is: %value%