When one is referring to specific files in a .do file--i.e., use "C:\Desktop\Project A\123.dta", clear--is there a way to set it to be relative to wherever the .do file is stored, rather than a set path?
It's a major pain when I reorganize my files (or someone else does!), and all my paths in saved .do files are now invalid and I have to fix them. Say, adding my "Project A", "Project B", and "Project C" folders into one "2018" folder--now I need to go change every instance of "C:\Desktop\Project A\123.dta" to "C:\Desktop\2018\Project A\123.dta"
It's a major pain when I reorganize my files (or someone else does!), and all my paths in saved .do files are now invalid and I have to fix them. Say, adding my "Project A", "Project B", and "Project C" folders into one "2018" folder--now I need to go change every instance of "C:\Desktop\Project A\123.dta" to "C:\Desktop\2018\Project A\123.dta"
Comment