Extract Files (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

Esri Defense Mapping cartographic production tool that extracts all of the contents of a ZIP file to a specified folder. For example, you can unzip the file geodatabase that is installed with Defense Mapping.

Usage

Syntax

ExtractFiles_defense (Input_Zip_Folder, Output_Workspace)
ParameterExplanationData Type
Input_Zip_Folder

The path to the ZIP folder from which the tool will unzip the contents.

File
Output_Workspace

The folder location where the files will be extracted.

Folder

Code Sample

Extract Files example (Python window)

The following code sample demonstrates how to execute the tool.

# Description: Unzips all files from a folder
# Requirements: Esri Defense Mapping

# Import arcpy module
import arcpy

# Check out the extension
arcpy.CheckOutExtension('defense')

# Set parameters
Input_Zip_Folder = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.3\ReferenceData\Cartography.zip'
Output_Workspace = r'C:\Data\10.3\Production\DefenseCartography'

# Execute the tool
arcpy.defense.ExtractFiles(Input_Zip_Folder, Output_Workspace)

# Check in the extension
arcpy.CheckInExtension('defense')

Environments

This tool does not use any geoprocessing environments

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Defense Mapping
ArcGIS for Desktop Advanced: Requires Defense Mapping
11/30/2015