UIX run exe application from main root

Hello,

I'm not strong in javascript. I need to call an exe application which is located in the main root directory. I mean in the directory where main.js and appdef.xml are or their subfolder. But I really do not know how to find out the full path name via javascript.

Thank you