At first glance, this seems like a purely subjective / aesthetic problem, but I would be interested to hear opinions (especially any technical ones) about whether environment or registry variables are the preferred place to store configuration data in a Windows environment.
Currently, I can only think of the following differences:
- The registry settings are constant in all sessions, although I believe that environment variables can also have this property.
- Easier to set environment variables from the command line and use
regedit- (Counter argument:
regedit easier for applications without a command line?)
- Environment variables are more common on different platforms (?).
I also know that environment variables can be polled, modified, and set from the registry.
environment-variables registry
kfb
source share