application.getHostApplicationPath()

Could you please provide the following function:

application.getHostApplicationPath()

This function should return:

C:\Program Files\Servoy3.5.5

if that is the path where my Servoy is installed.

I need this request, because some files must be created under the Servoy Installation Directory.

You could try

var vPath = new java.io.File(new java.io.File(" ").getAbsolutePath()).getParent();

But this works only in developer. From what I understand what you want is the directory of Servoy on the server?

From what I understand what you want is the directory of Servoy on the server?

Yes, indeed that is what I want

But then it is not good enough to know the path. You also need a way to transfer the file to the server. Have a look at IT2BE’s (free) Tools plugin. I think it has a method to transfer files to the server.

In my case I need it for a webclient solution.
So in that case files are read/written from/to server and not the client

But I can imagine that there should be also support for reading/writing files serverside and not clientside within smartclient and that those files must be written in a subdirectory of the Servoy installation directory