Article View: borland.public.jbuilder.java.api
Article #210Re: retrieving standard program path from Windows
From: Oliver
Date: Mon, 13 Jun 2005 14:54
Date: Mon, 13 Jun 2005 14:54
18 lines
1687 bytes
1687 bytes
Hello,
thank you both. I have one little remaining question: how can i read from the OutputStream? (toString() returns the address of the object, but where is the content?)
Oliver
Shankar Unni <shankarunni@netscape.net> wrote:
>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:
<42ad9e43@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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> <42aa1df9$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 From: "Oliver" <o.maas@nospam_metrohm.de> Sender: "Oliver" <o.maas@nospam_metrohm.de> Reply-To: "Oliver" <o.maas@nospam_metrohm.de> Subject: Re: retrieving standard program path from Windows Newsgroups: borland.public.jbuilder.java.api X-User-Info: 81.90.37.2 X-Forwarded-For: 192.168.103.10, 127.0.0.1 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> <42aa1df9$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42ad9e43@newsgroups.borland.com> Date: 13 Jun 2005 07:54:59 -0700 X-Trace: newsgroups.borland.com 1118674499 207.105.83.66 (13 Jun 2005 07:54:59 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail