I am writing a script where it would be helpful if I could tell what environment I am in: build, test, production. I really don't want to hard code the environment in the script.
Does anyone know how to obtain this information from a vbscript or anyway really? I thought it would be easy to grab the url somehow, which has the server name. I can parse that to determine what environment the code is running in.
Any help is appreciated.