Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: get the current path


From   Sun Yutao <yutao.sun.statalist@outlook.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: get the current path
Date   Tue, 23 Oct 2012 21:55:48 +0200

Hello everyone,

Does anyone know how to get the current path of the file that is being 
executed? i.e. if c:/foo/bar.do is being executed, then how do I know by some 
command that it's c:/foo/

I don¡¯t need the working dir...

Best regards,
Sun Yutao





*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index