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
Related Posts with Obtain actual Stata executable name
if condition "name global variable == " then enter the subroutineHi, I am trying to come up with an "if condition" that would allow me to enter parts of the code if…
Simulate correlated binary variablesHi, I would like to simulate correlated binary variables. Theoretically, I should have been able t…
Problem with import delimited - characters "¿" "1/2" "1/4" etcHi everyone, I want to import a public data set of standardized tests in Colombia. This information…
Temporary frameDear All, if a data frame is created with a temporary name it is disposed of after the end of the p…
Tobit model with two steps Dear statalisters, I am trying to estimate a generalized tobit model with two steps. The first step…
Subscribe to:
Post Comments (Atom)
0 Response to Obtain actual Stata executable name
Post a Comment