Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10723
| From | Paul Cager <paul.cager@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: WORKGROUP |
| Date | 2011-12-14 02:01 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <7fb87d89-6c78-4035-8755-71769837bc12@o1g2000vbe.googlegroups.com> (permalink) |
| References | <8f03213b-5a9e-40c5-b106-7f58a4398dae@t38g2000yqe.googlegroups.com> <jc9eu5$6oi$1@speranza.aioe.org> |
On Dec 14, 6:15 am, Rajiv Gupta <ra...@invalid.com> wrote: > On 2011-12-13 20:31:40 +1100, Ilya Lakhmitski said: > > > Is there a way to get the name of WORKGROUP in java? > > 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. If there is an environment variable set to the workgroup name you might find it easier to read that. See http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getenv() I don't have access to a Windows machine with a workgroup to check if there is such an environment variable, but my bet is that there will be. As other people have pointed out this is very much system-dependent - but that might not be a problem for you.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
WORKGROUP Ilya Lakhmitski <ilya.lakhmitski@gmail.com> - 2011-12-13 01:31 -0800
Re: WORKGROUP Ilya Lakhmitski <ilya.lakhmitski@gmail.com> - 2011-12-13 02:12 -0800
Re: WORKGROUP Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-12-13 12:27 +0000
Re: WORKGROUP Ilya Lakhmitski <ilya.lakhmitski@gmail.com> - 2011-12-13 04:33 -0800
Re: WORKGROUP Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-12-13 15:01 +0000
Re: WORKGROUP Lew <lewbloch@gmail.com> - 2011-12-13 07:52 -0800
Re: WORKGROUP Steve Sobol <sjsobol@JustThe.net> - 2011-12-13 13:36 -0800
Re: WORKGROUP Roedy Green <see_website@mindprod.com.invalid> - 2011-12-13 07:40 -0800
Re: WORKGROUP Roedy Green <see_website@mindprod.com.invalid> - 2012-01-04 17:27 -0800
Re: WORKGROUP Rajiv Gupta <rajiv@invalid.com> - 2011-12-14 17:15 +1100
Re: WORKGROUP Lew <lewbloch@gmail.com> - 2011-12-13 23:46 -0800
Re: WORKGROUP Paul Cager <paul.cager@googlemail.com> - 2011-12-14 02:01 -0800
csiph-web