I haven't tried the QuickImport command before but it seems to work as well, but you need to have access to the Data Interoperability extension. The code below converts all E00 files in a directory to shapefiles.import arcgisscripting, os
gp = arcgisscripting.create()
gp.CheckOutExtension("DataInteroperability")
# Directory containing E00 files
strE00Directory = "C:/temp"
# Temporary Geodatabase required for QuickImport
strTempGdb = strE00Directory + "/tempOutput.gdb"
# loop through list of files in the E00 directory
for strFile in os.listdir(strE00Directory):
if strFile.endswith(".e00"):
print "Extracting " + strFile + "..."
# convert E00 to file geodatabase feature class
gp.QuickImport(strFile, strTempGdb)
# Set the workspace to the gdb, loop through all of the extracted feature classes
# and create a shapefile from each.
gp.workspace = strTempGdb
objDatasets = gp.listfeatureclasses()
objDataset = objDatasets.next()
while objDataset:
strOutputFile = strE00Directory + "/" + objDataset + ".shp"
print "Creating " + strOutputFile + "..."
gp.copyfeatures_management(objDataset, strOutputFile)
objDataset = objDatasets.next()
# delete the temp gdb since QuickImport requires a new gdb each time its run
gp.delete_management(strTempGdb)