I've accidentally assigned this to "outlook"... it should be in "batch" by default!!!
We have a batch script that extracts results in an INI file to determine it's variables whilst running... I make it do this by using:
FOR /f "tokens=1* delims== " %%d in ('Type %ini_file% ^| find %certain_key%') do set answer=%%e
This all works fine for getting information for set keys... however, now I'm trying to get the script to build a menu based on what it finds... (i.e. the app menu's will be detailed in the INI file). So - for example - the ini file would look like:
I COULD use my above line to actually read the set lines... however, the INI file may be amended at any time to add any number of additional options (say for example menuoption100). How can I get the line of code to continue searching for the value "menuoption" and keep going through each number until it can't find the next one?
So... Script runs... references the ini file and goes through menuoption1, menuoption2, menuoption3 and keeps going till it notices that the next number isn't there... so menuoption101 isn't on there, so it stops?
These need to have a variable set specifically for each variable as they will be referenced later.
Any help appreciated!