Dear All,
I have a question regarding Stata working directory. I am working with multiple people on a project stored in dropbox. The problem is that of course everyone has a different path, so we always have to change in the cd command in the begining. eg.
Suppose my code.do file is in Project folder of Dropbox. Ideally, I would like "code.do" to know that it is stored in folder "Project" and then from there on only use subfolders of the folder "Project". For example, say code.do should import data, I would want it to do:
where "Data" is a folder in Project, and "dataset.dta" is a dataset in the folder "Data". This way, we would not have to change the cd command every time we run something. I know that this is really easy in Matlab (in fact it is the standard setting). is there a way to do this in Stata?
Thanks in advance!
Best,
Harvey
I have a question regarding Stata working directory. I am working with multiple people on a project stored in dropbox. The problem is that of course everyone has a different path, so we always have to change in the cd command in the begining. eg.
Code:
C:\harveysPC\Dropbox\Project C:\MikesPC\Dropbox\Project
Code:
use "Data\dataset.dta"
Thanks in advance!
Best,
Harvey
Comment