JacobCoble

Compress Shapefiles into Individual Zipfiles?

Discussion created by JacobCoble on May 29, 2013
I need to take all of the shapefiles in a directory and compress them into individual zip files. This is more complicated than taking the contents of a directory and making one zip file. I need to take, for example, the roads shapefile and get all of the files named roads.* into roads.zip, the schools shapefile, schools.* into schools.zip, and so on, for hundreds of shapefiles.

Any suggestions are appreciated. I did not see any tool that would do this. I assume there is a way to do this in python or another scripting language. I am clueless about how to tell a script to make a zip file for each unique file name (roads.*, schools.*, etc.).

Outcomes