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

Re: st: get current working directory


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: get current working directory
Date   Wed, 30 Nov 2005 10:26:44 -0500

Two ways:

  . local dir `c(pwd)'

or

  . local dir : pwd

I believe the first is more "modern."

--Nick Winter

At 10:22 AM 11/30/2005, you wrote:
Hi,

A programming question: is there a way to get the current working directory -
the result of pwd - into a local variable?

Thanks,
Peter

--
Peter Parzer
Zentrum f�r Psychosoziale Medizin
Klinik f�r Kinder- und Jugendpsychiatrie
Blumenstra�e 8, D-69115 Heidelberg
Tel.: +49/6221/56-6940, Fax: +49/6221/56-6941

*
*   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/
________________________________________________________
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
Cornell University falcon.arts.cornell.edu/nw53 w
308 White Hall
Ithaca, NY 14853-4601


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