A while ago my friend gave me thousands of legacy game system ROM's; each in it's own zip file. I wrote this script to take care of unzipping all of them. Really messy, and could use some optimization, but it worked. Thought about making a GUI, but meh.
import zipfile, os
print """=-=-=-=-=-=-=--=MASS_ZIP_EXTRACTION=-=-=-=-=-=-=--=
=-=-=-=-=-=-=-=-By: Tech B. =-=-=-=-=-=-=-=-=-=-="""
print """
"""
d = raw_input("""Path to Directory containing the Zip's to be extracted
example: C:\\Users\\TechB\\Desktop\\Zips
:""")
unzipFolder = raw_input("""Folder to place unzipped files: """)
zList = os.listdir(d)
badList = []
gnt = 0
bnt = 0
allz = 0
for z in zList:
try:
di = d
di += '\\' + z
if zipfile.is_zipfile(di) == True:
x = zipfile.ZipFile(di)
x.extractall(unzipFolder)
gnt += 1
allz += 1
print "extracted: ", z, gnt
else:
bnt += 1
allz += 1
badList.append(z)
print "failed: ", z, bnt
except:
allz += 1
badList.append(z)
print 'Error: ', z
print "=-=-=-=-=-=-==-=-=-=-=-=-="
print "Total files: %d" % allz
print "=-=-=-=-=-=-=-==-=-=-=-=-="
print "Failed files:"
for i in badList:
print i