import arcpy import glob import os # Provide folder path to loop through (first level only) folderPath = r"C:\TEMP\test" for filename in glob.glob(os.path.join(folderPath, "*.mxd")): print "Editing", filename mxd = arcpy.mapping.MapDocument(filename) if not mxd.description: mxd.description = "Default description" mxd.save() del mxd
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.