Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Hanno Scholtz" <scholtz@soz.unibe.ch> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: change directory from list |
Date | Mon, 21 Feb 2011 21:26:42 +0100 |
Hi I want to have a do-file performed in a number of directories, but it turns out that the change directory command cd does not accept string scalars. Of course, cd "c:\my data\stata" works, but scalar mypath="c:\my data\stata" cd `=mypath' does not. Does anyone know how to solve this? Thanks in advance, Hanno -- Dr. Hanno Scholtz <scholtz@soz.unibe.ch> University of Berne, Institute of Sociology Lerchenweg 36, CH-3012 Berne tel +41-31-631-4827 fax +41-31-631-4817 http://www.soz.unibe.ch * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/