>>> from arcpy import env... env.workspace=r"c:\165mxd"... out = r"c:\166mxd"... before = r"165"... after = r"166"... for f in arcpy.ListFiles("*.mxd"):... print f... mxd = arcpy.mapping.
# -*- coding: cp936 -*- import arcpy, os, string #Read input parameters from script tool mxdList = string.split(arcpy.GetParameterAsText(0), ";") outPDFpath = arcpy.GetParameterAsText(1) #Create a new PDF object to store the results outputPDF =