An alternative, which is really the same answer,
is to make use of -fs- from SSC.
Nick
[email protected]
David Harrison
> You could print all the .do files in your current working directory in
> Stata with:
>
> local dofiles : dir . files "*.do"
> foreach f of local dofiles {
> print `f', like(log)
> }
Caleb Southworth
> Does anyone have a method to dump all *.do files to a printer under
> windows from within stata? Or is this better done via cmd/dos prompt?
>
> I'm imagining an equivalent to stata's -print- but for all
> the do files
> in a particular directory, such as \prj\dofiles\*.do
*
* 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/