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: How to list and make copies of .do files on a hard drive
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: How to list and make copies of .do files on a hard drive
Date
Thu, 27 Sep 2012 18:11:36 +0100
In Windows, moving to the Command prompt and typing
dir /s *.do > dofiles.txt
gathers information on all .do files and puts it into a file. You
could edit that a bit, read it into Stata as a dataset and loop over
the files.
Nick
On Thu, Sep 27, 2012 at 6:06 PM, Donald Spady <[email protected]> wrote:
> Tim
> If you are using a pc, there is a program called "everything" (I think it is free: do a Google Search). It works in the background and records the name of every file on the main drive of your PC (I am unsure if it can explore external drives). Once it has initially scanned all your files, (takes a few minutes), all you have to do then is to look for *.do and every file, with its full location is listed. It is very fast. Great for looking for bits of file names. I suggest finding it using a Google search for Everything. (I used to use a PC but now use a MAC which does things differently).
>
> Hope this helps.
>
> Don
>
> On 2012-09-27, at 10:18 AM, Tim Evans <[email protected]> wrote:
>
>> Hi all,
>>
>> I'm doing some tidying up of a hard drive and I want to search the hard drive for all .do files, list their location (perhaps in a log file) so I know what they relate to and then make a new copy of each .do file into a single new directory. I may replicate this for .dta files so that I can tie them together.
*
* 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/