#Repair Broken MXD from Data Migration POC - firstname.lastname@example.org
Python Script that requires the arcpy module. Created to walk through a specified directory and its sub-directories. Searches for ESRI ArcGIS MXD map documents and replaces workspace paths from a specified path to another.
Variables: argv = DataMigration_v2.0.py (script name) argv = *searchDir (root directory that the walk will be initiated at) argv = *oldDirSeg (path segment that is to be removed) argv = *newDirSeg (path segment that is to be added) argv = *textLog (path to a text file that will contain run results)
This version of the script has removed the usage of sys.argv arguements and has all arguements hard coded. To run the script simply call it from the command line as:
cd path\to\script\directory python DataMig_v1.py