Statalist


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

st: AW: change directory using locals


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: change directory using locals
Date   Sat, 14 Feb 2009 22:02:11 +0100

<> 

BTW, you may also have run into the problem discussed in
http://www.stata-journal.com/article.html?article=pr0042, i.e. confusion
between path specifications and escape characters (maybe you simplified the
problem for the list, and really had this problem. From your path in your
initial post I take it that you use Windows as OS.). 
Bottom line: Use forward slashes in your paths to avoid nasty surprises...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Cesar Cancho
Diez
Gesendet: Samstag, 14. Februar 2009 21:49
An: statalist@hsphsun2.harvard.edu
Betreff: st: change directory using locals

hi all

I am trying to include a line like this in a program:

cd `gr1'

the problem is that the local gr1 is:

C:\Documents and Settings\Cancho\My Documents\Research

because of the blank spaces, this line never runs (always returns invalid
syntax , r(198)). I have tried all the possible combinations of quotes and
double quotes, but i couldn't make it work. Any idea or suggestion??? 

Thanks in advance,

Cesar


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


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



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