Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Need help reading values from ini file

I'm not sure if this is possible, but I can't seem to figure this out, or the best way to go about it.  I have an ini file that contains text like this,


Server=APP01

Folder=c:\app01\folder


How do I use Winautomation to read this ini file and set the Server and Folder as a variable?


Anybody have some tips for me?


Best Answer
Easiest and fastest processing method: 1. Read as Text File, option entire file contents into text variable. 2. One regular expression - parse text action per "xxxxx=" to extract the data to the right of = which will be stored into the "parse text" match output variable %xxxxx% of the parse text action.
1 Comment

Answer
Easiest and fastest processing method: 1. Read as Text File, option entire file contents into text variable. 2. One regular expression - parse text action per "xxxxx=" to extract the data to the right of = which will be stored into the "parse text" match output variable %xxxxx% of the parse text action.
Login or Signup to post a comment