Hi. I am trying to write a windows batch script that parses a string of data to capture key elements. The string contains both a token and the associated value. The double carat (^^) separates the value and the double @@ separates the token/value pair. For example with ACCESSKEY^^$P_ACCESSKEY, ACCESSKEY is the token, 123456 is the value. @@ indicates a new token/value pair is beginning.
I need a script that will parse the values from the scripts, i.e. the data between ^^ and @@. Also, the tokens that begin with APP_PARM_ are optional, so I need to check if they exist, and if they do, parse the full APP_PARM_ token and value.
Here is the data string that will be evaluated:
I'm not having any success with generating anything close. So any help would be greatly appreciated! Thanks, Joe