Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to avoid absolute path names in do-files?


From   jean ries <[email protected]>
To   [email protected]
Subject   Re: st: how to avoid absolute path names in do-files?
Date   Tue, 22 Mar 2005 14:46:33 +0100

Eva Poen wrote:

>(...)
>
>I know about global variables, but my problem is that I don't know how
>to define them from within the project directory, such that
>double-clicking a do-file works.
>

You could define some global variables containing the paths you need in
the "profile.do" file. Then, the day you will move your directories, you
just have to change the variable in "profile.do". Have a look at -whelp
profilew- , and maybe the manual entry cited in there.

Hope this helps?

jean
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index