Compress Shapefiles into Individual Zipfiles?

380
0
05-29-2013 05:43 AM
JacobCoble
New Contributor
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.).
0 Kudos
0 Replies