πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

retrieving standard program path from Windows

#204
From: Oliver
Date: Wed, 08 Jun 2005 13:29
18 lines
1367 bytes
Hi,

at the moment im trying to retrieve the standard program path ("C:\Programme" or "C:\Program Files" or ... itοΏ½s language dependent) from Windows 2000 with my Java program (JDK 1.5).
Does somebody have an idea?

I had a look at java.lang.System, here i get the user.dir (working directory) by

       String s = "";
       Properties P = java.lang.System.getProperties();
       s = P.getProperty("user.dir");
       return s;

but this is not exactly what i want.

thanks

Oliver
Technical Details
Message-ID: <42a6f2ac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,b523e2611fbd7782,start
X-Google-Attributes: gid1089d0,public
X-Google-Language: ENGLISH,ASCII
From: "Oliver" <o.maas@nospam_metrohm.de>
Sender: "Oliver" <o.maas@nospam_metrohm.de>
Reply-To: "Oliver" <o.maas@nospam_metrohm.de>
Subject: 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
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42a6f2ac$1@newsgroups.borland.com>
Date: 8 Jun 2005 06:29:16 -0700
X-Trace: newsgroups.borland.com 1118237356 207.105.83.66 (8 Jun 2005 06:29:16 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail