in reply to Avoiding hard-coding

Use environment variable. Environment variables are stored in %ENV.