[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: renaming path name in 100 do-files

From   Maarten buis <>
To   stata list <>
Subject   st: renaming path name in 100 do-files
Date   Thu, 24 Sep 2009 14:07:02 +0000 (GMT)

--- raoul reulen wrote:
> 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?

You could loop over the .do-file names and see if you can use 
-filefilter- to replace every occurrence of the old path with the new 

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index