I have this batch script:
#target environment (this can be DEV/QA/PROD)
targetEnv=DEV
url=get this from file name env_prop_${DEV}.ini
user=get this from file name env_prop_${DEV}.ini
password=get this from file name env_prop_${DEV}.ini
what i would like to do is extract all the the environment configuration into seperate files like:
config_DEV.ini containing:
url=dev1
user=dev1
password=pass1
config_QA.ini containing:
url=qa-server
user=dev
password=password
config_PROD.ini containing:
url=prod-server-01
user=manager007
password=*******
And then substitute the script variables according to the targetEnv
so for example if targetEnv is QA, variable url will be
url=qa-server
user=dev
password=password