We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Path of "Application data" of windows
Page Index Toggle Pages: 1
Path of "Application data" of windows (Read 919 times)
Path of "Application data" of windows
Sep 25th, 2006, 6:44pm
 
Hi all,

Someone know any system variable in java to get the path of "Application data" of windows? (is inside "Documents and settings").

I have others but not this. And this folder change in diferents windows languages, in Spanish is "Datos de programa".

Code:

void setup(){
println(System.getProperty("os.name") );
println(System.getProperty("path.separator"));
println(System.getProperty("user.language"));
println(System.getenv("COMPUTERNAME"));
println( System.getProperty( "user.dir" ));

}


cheers,

Mar
Re: Path of "Application data" of window
Reply #1 - Sep 25th, 2006, 10:51pm
 
not that i know of. for processing itself, we use additional native code to get it.

generally java provides no access to operating system features that are not entirely cross-platform. so because application data doesn't exist on other machines, it's not part of the java api.
Re: Path of "Application data" of window
Reply #2 - Sep 28th, 2006, 9:45pm
 
I saw that It's not in java api -> java.lang.System
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()

I'm looking to read database the inbox of Mozilla Thunderbird(email software client), and in this folder have the folders that contain all messages saved in the inbox. The problem is in diferents language of windows OS have diferent names this folder("appilication data").

just thanks,

Mar
Page Index Toggle Pages: 1