I am having some troubles with the following situation:
I have a folder with .ini files. Each file contains parameters in the first line. These parameters are delimited by a space (could be changed to a comma). Parameters which contain text and spaces are surrounded by quotes.
With
Code: Select all
for %%a in ("%PROOT%\- Presets\- Presets TYPE\*.INI") do (
set /p val=<%%a
set /pz=<%%a
echo %%~na: %%~na !z!
)
With
Code: Select all
FOR /F "usebackq tokens=6-7 delims=," %%B IN ("%PROOT%\- Presets\- Presets TYPE\1S.INI") DO (set p1=%%~B&set p2=%%~C&set p3=%%~D&set p4=%%~E&set p5=%%~F&set p6=%%~G&set p7=%%~H&set p8=%%~I&set p9=%%~J)
echo %p1%: %p2%
Who can help?