Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: capturing directories and file names that start with numebrs, ex: "1111.zip" (problem with dir extended_macro_function)


From   daniel klein <klein.daniel.81@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: capturing directories and file names that start with numebrs, ex: "1111.zip" (problem with dir extended_macro_function)
Date   Tue, 29 Jan 2013 21:09:08 +0100

The example just sent does not actually work. This however has nothing
to do with the file name beeing numeric ...

Try instead

cd c:/ado
sysuse auto ,clear
sa 42.dta
di `"`: dir . file "*.dta'""'
erase 42.dta

Sorry for the inconvenience.

Daniel

-- 
This works perfect for me

cd c:/ado
sysuse auto ,clear
sa 42.dta
di `": dir . file "*.dta""'
erase 42.dta
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index