Statalist


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

st: AW: change directory using locals


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: change directory using locals
Date   Sat, 14 Feb 2009 21:54:58 +0100

<> 


Have you really tried this:

*************
cd "`gr1'"
*************

Should work...


HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Cesar Cancho
Diez
Gesendet: Samstag, 14. Februar 2009 21:49
An: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index