Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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 <>
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.


On Thu, Sep 27, 2012 at 6:06 PM, Donald Spady <> 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 <> 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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index