Statalist


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

RE: st: Acessing files in dir


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Acessing files in dir
Date   Mon, 13 Jul 2009 19:21:27 +0100

Thanks for the mention. -fs- is downloadable from SSC. 

Nick 
[email protected] 

Scott Merryman

You can use Nick Cox's -fs- to get a list of file names returned in r(files).


On Mon, Jul 13, 2009 at 6:36 AM, Tiago Dias<[email protected]> wrote:

> I have a directory with a few hundreds files, all in .dta. I need to -use- each one of them and make the same modification. If I modify one by one, I have a big chance of missing one of them or modifying twice a single file.
> I thought about using -dir- to get the filelist and -foreach- to have stata browsing, using, modifying and saving each file on filepath, but I don't know how to access the filenames in -dir-.

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