What replaces System.getenv()
I've been looking at System.getProperty() but can't figure out how to get
an environment variable.
Ideally, I'd like to read a registry key. I'm using J++ on NT.
Re: What replaces System.getenv()
Registry keys are not the same as environment variables. Environment
variables date from the DOS days (DOS 2 copied them from UNIX) and are
simple things like TEMP=c:\windows\temp. If you look in the file
C:\autoexec.bat you will probably see some environment variables being set.
The registry is a Windows 95 concept, tree-structured and much more complex.
J++ may have some Microsoft-specific class for reading registry keys, but
having never used it I couldn't tell you what that might be.
Jim Maguire <email@example.com> wrote in message
> I've been looking at System.getProperty() but can't figure out how to get
> an environment variable.
> Ideally, I'd like to read a registry key. I'm using J++ on NT.
> Any help???
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center