Detecting working folder and name of .exe file (name of myself)

Supposing that program is running compiled as exe file, and that user renamed ex file before running it, is there a way to know name of running exe file (something as name of “myself”) and directory where it was runned from?
something as C:\tommy\program.exe
thanks

Already found: http://documentation.xojo.com/index.php/Application.ExecutableFile
Thanks

why would you delete your posts ?

doing so means that anyone having a similar problem & searching for certain keywords is less likely to find this

you shouldn’t

Name of myself = .owner