Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Rajiv Gupta Newsgroups: comp.lang.java.programmer Subject: Re: WORKGROUP Date: Wed, 14 Dec 2011 17:15:35 +1100 Organization: Aioe.org NNTP Server Lines: 18 Message-ID: References: <8f03213b-5a9e-40c5-b106-7f58a4398dae@t38g2000yqe.googlegroups.com> NNTP-Posting-Host: nkFEEnOpdWgDxOl3Ga1U7w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Unison/2.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10720 On 2011-12-13 20:31:40 +1100, Ilya Lakhmitski said: > Is there a way to get the name of WORKGROUP in java? Hello there good Sir! I don't know why the people in this webstation Google group page are showing strange attitude towards you. Perhaps they think their situation and knowledge is superior and they want to make sure that you know it. Well, don't worry. Contrary to what these clowns are saying, there is a portable way to do it. Java's java.util.prefs.Preferences package provides full support for reading values from the Windows registry. You will have to consult the Microsoft documentation to get the registry key path to play with.