I would love for there to be command or code that I could put at the top of a .do file that had the functionality "change the working directory to whatever the directory is of the .do file being executed." Is there a way to do this? As far as I can tell, the "do" command in Stata doesn't story the location of the do-file that it is executed, but I don't know if I'm wrong about this, or if Stata or somebody more clever than I am has figured out some work-around.
-
Login or Register
- Log in with

Comment