Get application_server path of Servoy application at runtime

Hi,

I am trying to get the absolute path of application_server folder. Is there a way to get this?

Afaik there’s no way to get that.

Can you explain what you want to do?

Thanks for the reply.

I want to be able to update any folder and any files in the application server folder through TSM7 solution.

I was thinking of saving the installation path as a property in a property file during the installation process and then at runtime it will read this property and look for the application_server folder. If there is no method in Servoy codes to retrieve the installation path, the property file might be the only way.

erikd:
I want to be able to update any folder and any files in the application server folder

Some files/folders will be locked while the application server is running.

But if this will work, the property seems a good workaround.

Hi Marc,

mboegem:
Some files/folders will be locked while the application server is running.

Yes, I am aware of that. This is the reason why I created another application to stop, update, and start the server.

Cheers!