Hello ARIS Community,

how can I get the name of the home directory of the current client PC user? The directory name is normally specified in the local environment variables on the client PC.

I tried the following java code in a macro, but it crashed:

var sPath = java.lang.System.getProperty("user.dir");

I don't want to use a static path but an individual one for each user on the client PC to open a personal configuration file by a macro:

var sFilename = "config.xml";
var f = new java.io.File(sPath + sFilename);

Can anyone help me?

Best regards

Tags: macro script