Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: path to folder prob


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: path to folder prob
Date   Wed, 21 May 2008 10:17:01 -0400

My macro-fu is not the best, so there's probably a more
succinct solution, but this works for me:

local path "C:/Documents and Settings/`c(username)'/Desktop"
cd "`path'"

hth,
Jeph

Martin Weiss wrote:
Dear Statalisters,

I am wondering whether there is a way to have Stata -cd- to a certain
directory on two different computers which only differ in the name of the
user profile? In other words, is there a way to have Stata -cd- to the
user`s "my files" on Windows Vista Business reliably? Among the values
thrown up by -cret li- I judge only "c(username)" to be promising. However,
when I instruct Stata to
****************
cd C:\Users\"`c(username)'"\Documents
****************

or
****************
cd C:\Users\`c(username)'\Documents
****************

Stata complains about "invalid syntax r(198)". Is there a way to achieve
this?



Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945


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

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