<ol>
<li>Specifically getting on Windows the "..\Documents &amp; Settings\All Users, basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on. <strong>(Now I need the answer to this)</strong></li>
<li>the current users My Documents  dirctory <strong>(okay this has been answered)</strong> 
and basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on.</li>
</ol>

[{'answer_id': 37240, 'author': 'nimish', 'author_id': 3926, 'author_profile': 'https://Stackoverflow.com/users/3926', 'pm_score': 3, 'selected': False, 'text': '<p>My docs would probably best be handled by accessing:</p>\n\n<pre><code>System.getProperty("user.home");\n</code></pre>\n\n<p>Look up the docs on <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html" rel="noreferrer">System.getProperty</a>.</p>\n'}, {'answer_id': 37693, 'author': 'Lee Theobald', 'author_id': 1900, 'author_profile': 'https://Stackoverflow.com/users/1900', 'pm_score': 2, 'selected': False, 'text': '<p>Any information you can get about the user\'s environment can be fetched from</p>\n\n<pre><code>System.getProperty("...");\n</code></pre>\n\n<p>For a list of what you can get, take a look <a href="https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html" rel="nofollow noreferrer">here</a>.</p>\n\n<p>I don\'t think you\'ll be able to get the path you require (the All Users path) in an OS dependent way.  After all - do other operating systems have an equivalent?  Your best bet is to probably inspect:</p>\n\n<pre><code>System.getProperty("os.name");\n</code></pre>\n\n<p>to see if you are running Windows and then if so use "C:\\Documents &amp; Settings\\All Users\\".</p>\n\n<p>But you\'ll be better off just constantly using</p>\n\n<pre><code>System.getProperty("user.home");\n</code></pre>\n\n<p>(as mentioned by other people) throughout the application.  Or alternatively, allow the user to specify the directory to store whatever it is you want to store.</p>\n'}, {'answer_id': 12264950, 'author': 'Markus Kreusch', 'author_id': 1463100, 'author_profile': 'https://Stackoverflow.com/users/1463100', 'pm_score': 0, 'selected': False, 'text': '<blockquote>\n  <p>Specifically getting on Windows the "..\\Documents &amp; Settings\\All Users, basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on. (Now I need the answer to this)</p>\n</blockquote>\n\n<p>The folders below the All Users dir are variable directories in windows. Details can be found in the document about <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd378457%28v=vs.85%29.aspx" rel="nofollow">KNOWNFOLDERIDs</a> (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx" rel="nofollow">CSIDL</a> in older versions).\nBecause this values are system dependent Java does not provide a way to access the values.</p>\n\n<p>I think there is in general no equivalent on other operating systems to this windows specific folder. In addition the folder Documents &amp; Settings\\All Users is only present in latest windows versions and things are handled differently for e.g Windows 2000 or XP I think.</p>\n\n<p>If you really need this information you should read the microsoft docs and impement a native library or some script invoked by Runtime.exec to provide the information to your java application.</p>\n'}]
['https://Stackoverflow.com/questions/37198', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3576/']