AnsweredAssumed Answered

Importing mxd into ARCGIS pro using python script

Question asked by E087607 on Oct 12, 2018
Latest reply on Mar 14, 2019 by spk578

I have created a script to import  multiple MXD 

import arcpy, os, datetime

workspaceMXD = "C:\\Users\\e087607\\Desktop\\"
arcpy.env.overwriteOutput = True

aprx ="Current")
arcpy.env.workspace = workspaceMXD
listFiles = arcpy.ListFiles("*.mxd")

#Import MXD Files
for files in listFiles:
inputMXD = os.path.join(workspaceMXD, files)
print (inputMXD)

print ("MXD Files: " + str(listFiles) + " were updated at " + str(datetime.time))

I go to run it as normal and takes its time (doesn't run quickly) but none of the files I wanted to copy over showed up.   I followed the script example from ESRI word for word.   Am I doing something wrong?   Is there a different code to use?Please let me know 


Thanks Andrew