Thanks for the suggestions. I failed to mention that the do-files are
in several sub (and sub-sub) folders as well, which would make the
task more complicated.....
2009/9/24 Ulrich Kohler <[email protected]>:
> Perhaps something along the following lines:
>
> ssc install dirtools
> ldo
> foreach file in `r(files)' {
> filefilter `file' `file'new, from(<oldpath>) to(<newpath>)
> }
>
> Uli
>
>
> Am Donnerstag, den 24.09.2009, 15:02 +0100 schrieb raoul reulen:
>> Dear all,
>>
>> I received around 100 different do-files from a colleague, but the
>> path name in each do-file is different from my computer because the
>> do-files were on a different computer. Is there any easy way to change
>> the path in each do-file without having to physically open each
>> do-file and replace the path name?
>>
>> Thanks,
>>
>> Raoul
>> *
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/statalist/faq
>> * http://www.ats.ucla.edu/stat/stata/
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
-------------------------------------------------------
Raoul C. Reulen
Cancer Research UK Training Fellow
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/