How to get database's pathname

Hello!
Please explain me how can I get database's pathname in the Libre Office Base
Visual Basic script containing in this database file. I want to do this
independently under Windows or under Linux.