Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DataMig_v1.py
readme.md

readme.md

#Repair Broken MXD from Data Migration POC - chaz.mateer@gmail.com

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[0] = DataMigration_v2.0.py (script name) argv[1] = *searchDir (root directory that the walk will be initiated at) argv[2] = *oldDirSeg (path segment that is to be removed) argv[3] = *newDirSeg (path segment that is to be added) argv[4] = *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

You can’t perform that action at this time.