# Import modules import glob,os import arcpy # Set geoprocessing workspace and working directory path = r'C:\example' print "Setting workspace to: " + path arcpy.env.workspace = path os.chdir(path) listFiles = glob.glob('*.dbf') print listFiles # Loop through the list of text files for currentFile in listFiles: # Find the current file name and path filename = currentFile[:-4] FilePath = path + '/' + currentFile # then run your conversion stuff on the current filename
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.