Many of my do-files contain a file path that needs to be updated. Example:
Current file path: O:\Prosjekter\...
New file path: O:\Prosjekt\...
Is there a way I can use Stata to loop over multiple do-files and edit them (in this case replace "O:\Prosjekter" with "O:\Prosjekt")?
(I know how to obtain a list of the do-files and save the list in a macro).
Current file path: O:\Prosjekter\...
New file path: O:\Prosjekt\...
Is there a way I can use Stata to loop over multiple do-files and edit them (in this case replace "O:\Prosjekter" with "O:\Prosjekt")?
(I know how to obtain a list of the do-files and save the list in a macro).

Comment