As you can probably tell. I have to abort trying to get that to work. However, it pleases me to no end to say that I finally figured out how to get "control" the way the FOR /F command inputs lines of text that contain spaces and commas.
My line inputs contain a city name in the middle of the string. The problem is that "Salt Lake City" would get stored into 3 variables instead of one.
Here is my solution:
FOR /F "tokens=*" %%a IN (output.txt) DO (
echo %%a >oneline.txt
In the insert_new_stations Batch file I write the contents of oneline.txt into a variable.
set /p currentline=<oneline.txt
From there a bunch of SET and IF commands do the rest.
Thanks for your help.