Filepath

I am trying to make a filepath evaluate to the Documents folder of the current user. To make instalation over multiple machines / user accounts easier. StackOverflow gave me the following solution: C:\Users\%USERNAME%\Documents\ . However KNIME can't evaluate this to a valid filepath using the List File node. The url reader, file list, can evaluate it, but returned an empty table.

C:\Users\%USERNAME%\Documents
C:\Users\%USERNAME%\Documents
C:\Users\%USERNAME%\Documents

Hello Luuklag,

try a Java Edit Variable(simple) with the following code:

return System.getProperty("user.home")+"\\Documents";

Feed it into the List Files node and you're done

Best,
Ferry

Thanks. Works like a charm.