Statalist The Stata Listserver


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

st: RE: print *.do files as batch?


From   "David Harrison" <david.harrison@icnarc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: print *.do files as batch?
Date   Wed, 11 Oct 2006 16:39:25 +0100

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)
}

Hope this helps

David

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Caleb
Southworth
Sent: 11 October 2006 17:34
To: statalist@hsphsun2.harvard.edu
Subject: st: print *.do files as batch?

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

Caleb
caleb@uoregon.edu
University of Oregon Sociology

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index