Select to view content in your preferred language

Change datasource in .lyr files in specific folder

9935
20
10-12-2017 12:48 PM
JoseSanchez
Frequent Contributor

Good afternoon everyone,

We have a folder  with 175 .lyr files. All .lyr files are pointing to an SDE instance and we need to change each lyr data source to point to another SDE instance.

I am looking for a way to do that in python where I can loop through all files in the folder and change their datasource.

Thanks

0 Kudos
20 Replies
JosephJose
Occasional Contributor

Does any have the script to change the datasource in SDE to another on?

My script isn't working

0 Kudos