Read Data into Bat File from Txt File to Be Used As Variables

Discussion created by mvolz47 on Mar 2, 2012
Latest reply on Mar 7, 2012 by curtvprice
To All Python Users That Use Bat Files to Call Python Scripts:

I am trying to read in values from a txt file in a bat file that will be used as variables when calling python scripts within the bat file.  I have searched the Internet for the proper syntax to accomplish this goal, but I am unable to read from a txt file in the bat file.

Does anyone have experience with this task and could provide some sample code so I can see where I am going wrong?  Any help or hints are greatly appreciated.  Thanks.