This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import arcpy, os | |
| os.system('cls') | |
| mxd = arcpy.mapping.MapDocument(r"\\Server\Share\MyMap.mxd") | |
| tolerateFieldWhenDisabled = True | |
| for layer in arcpy.mapping.ListLayers(mxd): | |
| print "Checking Layer '" + layer.name + "'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import arcpy, codecs, csv, os | |
| mxd_folder = "C:\\temp\\MXDs" | |
| output = "C:\\temp\\dataSources.csv" | |
| f = codecs.open(output, "w", encoding="utf-8") | |
| f.write("MXD;Layer;Data Source\n") | |
| for file in os.listdir(mxd_folder): | |
| if file.endswith(".mxd"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import arcpy, codecs, csv, os, shutil | |
| os.system("cls") | |
| origFgdbLocation = r"\\Server\Share" | |
| origFgdbNames = ["A", "B", "C"] | |
| csvFilePath = r"C:\temp\members.csv" | |
| elements = [] | |
| for fgdbName in origFgdbNames: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Clear-Host | |
| $ErrorActionPreference = 'Stop' | |
| $Git_Branch = 'develop' | |
| $Git_Base_Directory = 'C:\Git' | |
| # get all existing Git repositories => For this, L:\src get filtered for all folders ending on 'v' and a digit because only those folders are accesibble via Git-Server | |
| $Git_Repos = Get-ChildItem $Git_Base_Directory | ?{ $_.PSIsContainer } | Where-Object {$_.Name -match '\w*v\d\b'} | Select-Object Name | |
| ForEach($Git_Repo in $Git_Repos) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Clear-Host | |
| $ErrorActionPreference = 'Stop' | |
| # get all existing Git repositories => For this, C:\Git get filtered for all folders ending on 'v' and a digit because only those folders are accesibble via Git-Server | |
| $Git_Repos = Get-ChildItem C:\Git | ?{ $_.PSIsContainer } | Where-Object {$_.Name -match '\w*v\d\b'} | Select-Object Name | |
| $Git_Server = 'https://www.MyGitServer.com' | |
| $Git_Branch = 'develop' | |
| $Git_LocalCloneDirectory = 'C:\temp' |
NewerOlder