I have created a script to import multiple MXD
import arcpy, os, datetime
workspaceMXD = "C:\\Users\\e087607\\Desktop\\"
arcpy.env.overwriteOutput = True
aprx = arcpy.mp.ArcGISProject("Current")
arcpy.env.workspace = workspaceMXD
listFiles = arcpy.ListFiles("*.mxd")
#Import MXD Files
for files in listFiles:
inputMXD = os.path.join(workspaceMXD, files)
print (inputMXD)
aprx.importDocument(inputMXD)
aprx.saveACopy("C:\\Users\\e087607\\Documents\\ArcGIS\\Projects\\import.arpx")
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