🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #209

Re: retrieving standard program path from Windows

#209
From: Shankar Unni
Date: Fri, 10 Jun 2005 23:10
9 lines
1418 bytes
Lori M Olson [TeamB] wrote:

> Not without the use of JNI.

Or by the classic dodge of exec'ing a helper program to write out the 
values of environment variables:

   Process p = Runtime.getRuntim().exec("cmd /c echo '%PROGRAMFILES%'");
   // Read the output from p.getOutputStream()
Technical Details
Message-ID: <42aa1df9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42a6f2ac$1@newsgroups.borland.com> <42a794b6$1@newsgroups.borland.com> <42a7a445$1@newsgroups.borland.com> <42a7fa07$1@newsgroups.borland.com> <42a8c04b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,b523e2611fbd7782
X-Google-Attributes: gid1089d0,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Jun 2005 16:10:50 -0700
From: Shankar Unni <shankarunni@netscape.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: retrieving standard program path from Windows
References: <42a6f2ac$1@newsgroups.borland.com> <42a794b6$1@newsgroups.borland.com> <42a7a445$1@newsgroups.borland.com> <42a7fa07$1@newsgroups.borland.com> <42a8c04b$1@newsgroups.borland.com>
In-Reply-To: <42a8c04b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.120.146.125
Message-ID: <42aa1df9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118445049 68.120.146.125 (10 Jun 2005 16:10:49 -0700)
Lines: 9
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail