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: How to list and make copies of .do files on a hard drive


From   Tim Evans <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: How to list and make copies of .do files on a hard drive
Date   Fri, 28 Sep 2012 12:31:01 +0100

Don, Nick,

Thank you for your replies. I'll see how I get on with them.

Best wishes

Tim



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: 27 September 2012 18:12
To: [email protected]
Subject: Re: st: How to list and make copies of .do files on a hard drive

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/

_DISCLAIMER:
This email and any attachments hereto contains proprietary information, some or all of which may be confidential or legally privileged. It is for the exclusive use of the intended recipient(s) only. If an addressing or transmission error has misdirected this e-mail and you are not the intended recipient(s), please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail or any attachments, as this may be unlawful.


*
*   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