import os import sys import shutil # Put the network share where the source style is found here: # Note do not remove the r in front of the quotes # StylePath=r"\\servername\share\folder\file.ext" StylePath=r"\\nglaa0-cbem-ag1\software" # Put the name of the style here StyleName="test1.style" Server2008OutPath=r"C:\Program Files (x86)\ArcGIS\Desktop10.2\Styles" VistaOutPath=r"C:\Program Files\ArcGIS\Desktop10.2\Styles" if os.path.isdir(Server2008OutPath): try: print "Copying %s" % StyleName shutil.copyfile(os.path.join(StylePath,StyleName),os.path.join(Server2008OutPath,StyleName)) except: print "Error copying" elif os.path.isdir(VistaOutPath): try: print "Copying %s" % StyleName shutil.copyfile(os.path.join(StylePath,StyleName),os.path.join(VistaOutPath,StyleName)) except: print "Error copying" else: print "Could not find ArcGIS style folder"
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.