MXD Data Source Replacer

Get started by downloading the python script here:

http://sandbox.idre.ucla.edu/tools/python/mxd_converter_AKochaphum.py

The “MXD Data Source Replacer” python script is used for changing the location of data for ArcGIS mxd files. For new users of python the only line which you need to be concerned about is lines 14 and 17.

Line 14 is the old data source path which you would like to change, while Line 17 is the new data path that you would like to replace it with. It is crucial for the code to work that you use two backslashes (e.g.\) in order to identify the paths; the reason for this oddity is that one backslash (e.g.) triggers an escape action in python, so having two of them treats the backslashes as one.