Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell Extract Zip Files

Posted on September 11, 2015May 8, 2018 By David Kittell
function Expand-ZipFile([string]$File, [string]$Destination) #The targets to run.
{
    $Shell = new-object -com shell.application

    # Get the name of the Zip file
    $Zip = $Shell.NameSpace($File)

    #Expand/Extract each file from the zip file
    foreach($Item in $Zip.items())
        {
            $Shell.Namespace($Destination).copyhere($Item)
        }
}
Expand-ZipFile –File "C:\file.zip" –Destination "C:\tempfile"

Reference: http://www.howtogeek.com/tips/how-to-extract-zip-files-using-powershell/

Originally Posted on September 11, 2015
Last Updated on May 8, 2018
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell

Post navigation

Previous post
Next post

Related Posts

Basic4Android – Compass Direction

Posted on September 15, 2017

Sub GetCompassDirection(bearing As Double) As String Dim tmp As Int ‘ Set Default Direction Dim direction As String : direction = "N" tmp = Floor(Round(bearing / 22.5)) Select Case tmp Case 1 direction = "NNE" Case 2 direction = "NE" Case 3 direction = "ENE" Case 4 direction = "E"…

Read More

Java – FRC – Limelight Vision – Basic Information Read

Posted on January 23, 2020March 9, 2020

The code below will help you to be able read basic information from your Limelight Vision camera. If you haven’t already read the documentation it’s a good idea to start there -> http://docs.limelightvision.io/en/latest/ Start with a new “Timed Robot” template project and add a few imports import edu.wpi.first.networktables.NetworkTable; import edu.wpi.first.networktables.NetworkTableEntry;…

Read More

Ektron Find Replace Library Folder Names

Posted on October 23, 2013October 26, 2015

This script will rename folder paths of renamed CMS folders. SET XACT_ABORT ON BEGIN TRAN DECLARE @currtext NVARCHAR(255) DECLARE @newtext NVARCHAR(255) DECLARE @search NVARCHAR(500) DECLARE @replace VARCHAR(500) DECLARE @pos INT DECLARE @id BIGINT DECLARE @libtype_id INT — folder names SET @search = ” –string to find SET @replace = ”…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes