DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Jim Maguire Guest

    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.

    Any help???

  2. #2
    Paul Clapham Guest

    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 <jim.maguire@sasipos.com> wrote in message
    news:398ac679$1@news.devx.com...
    >
    > 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???




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links