Zipping a shapefile via ArcToolbox
UPDATE: After receiving a request to modify the code to ignore .lock files, I have an updated to this post.
I’ve received a request on how to use the Zip Shapefile code I posted last week from ArcGIS. Sorry, I did not set the code up to call directly from ArcGIS but only as an illustration of how it can be done.
I have, however, with some minor tweaking, made a version that can added to ArcToolbox.