Statalist


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

st: saving all file names in directory/folder


From   "Raphael Fraser" <[email protected]>
To   [email protected]
Subject   st: saving all file names in directory/folder
Date   Thu, 17 Apr 2008 13:00:32 -0500

what wrong with my syntax?

I am trying to save all the csv files in a folder for an append.

local myfiles: dir "C:\data\kingdom\*.csv"

foreach file of local myfiles {
  display "`file'"
}

An explanation as to why the above doesn't work is also welcomed

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