ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Extract Files

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

ArcGIS 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

  • There are zipped file geodatabases that are installed with Defense Mapping. If you want to use one of these geodatabases, you will need to extract the files before using it. The geodatabases are installed at <Installation location>\ArcGIS\EsriDefenseMapping\Desktop<release version>\ReferenceData.

Syntax

arcpy.defense.ExtractFiles(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

ExtractFiles example (Python window)

The following code sample demonstrates how to execute the tool.

# Description: Unzips all files from a folder
# Requirements: ArcGIS 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

  • Basic: No
  • Standard: Requires Defense Mapping
  • Advanced: Requires Defense Mapping

Related topics

  • An overview of the Utilities toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal