Statalist


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

Re: st: mkdir with local


From   "Timothy Dang" <[email protected]>
To   [email protected]
Subject   Re: st: mkdir with local
Date   Tue, 18 Sep 2007 15:38:03 -0700

Tiago-

> local name = "test_directory"
> cd C:\
> mkdir "`name' "
> // my do file
> save "C:\`name'\current_data.dta"
>
> However, last line does not work. Is it possible to do that?

When you say the last line does not work, do you mean that the earlier
lines do work? Was the directory created correctly?

I've tried what seems to be the equivalent of the above, but I'm on a
Mac, so it's slightly different. What I have works.

local name = "test_directory"
cd "~"
display "name=`name'"
mkdir "`name'"
save "`name'/current_data.dta"

------------------------------
Timothy O'Neill Dang / Cretog8
623-587-0532
One monkey don't stop no show.
*
*   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