1. Does this take all the variables out of test.ini or just three?
It takes all the variables except the heading lines (ie. [Settings]). Note: the delims= clause is specific to your data layout and the
if statement eliminates the heading lines.
2. And are there any other ways to call information (Like from a regular .txt file.) into the batch?
The
for command with the
/f switch will read a file line by line. You can apply any logic within the
do loop. The file label of the input file is in parenthesis. This can be any
text file, but not proprietary file types like databases or spreadsheets.
You can also use the
set /p var=<filename command to bring
one line from a file into your batch code.