Dear All,
c(sysdir_stata) gives us the folder where the currently running Stata is installed. I am looking for an additional detail on what is the actual name of the Stata executable (*.exe on Windows platform) within that folder. I permit that:
- that folder may contain unrelated files, including executables;
- that folder may contain multiple Stata executables (for various flavors);
- the user may have renamed the executable file to differ from the default how it is distributed by StataCorp.
That said, I need the full name of exactly that executable that is currently executing my code (it may be something like "c:\Program Files\Stata16\StataMP-64.exe")
PS: Given the recent renames of the product described in the manual I am trying to avoid hardcoding any fixed names or introduce logic based on c(os) or c(machine_type) that may not be future-proof.
Thank you, Sergiy
0 Response to Obtain actual Stata executable name
Post a Comment