Search found 2 matches

by irinaonline
11 Feb 2018 03:13
Forum: DOS Batch Forum
Topic: Read parameters from files
Replies: 2
Views: 2564

Re: Read parameters from files

penepen, for %%a in ("%PROOT%\- Presets\- Presets TYPE\*.INI") do ( set /pz=<%%a FOR /F "usebackq tokens=6-7 delims=," %%B IN ("%%~a") 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 %%~na ... !p2! ) ) finally worked. It echoes th...
by irinaonline
09 Feb 2018 14:59
Forum: DOS Batch Forum
Topic: Read parameters from files
Replies: 2
Views: 2564

Read parameters from files

Dear forum, 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 for %...