Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Relative directory paths in Stata?
From
Mark Millstone <[email protected]>
To
[email protected]
Subject
st: Relative directory paths in Stata?
Date
Mon, 5 Aug 2013 09:49:38 +0200
Hi all,
There's one thing I was never able to figure out in Stata. How can I
instruct the programme to change to the directory which contains the
current do-file? For instance, if I use a USB stick, depending on the
computer, I may be working in drive "E:\My files" or "F:\My files".
Now, if I change the working directory to "F:\My files" in the former,
or "E:\My files" in the latter case, I will get an error. Can't I just
instruct Stata to change to whatever directory the current do-file is
in? Thanks.
Regards,
Mark
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/