Skip to content
Atiq Rahman edited this page Dec 14, 2022 · 5 revisions

Expand-Archive

Deprecated by Expand-Archive (in PS 5.1 or higher).

unzip.ps1 with ref, howtogeek

function Expand-ZIPFile($file, $destination)
{
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)

    foreach($item in $zip.items())
    {
        $shell.Namespace($destination).copyhere($item)
    }
}

Expand-ZIPFile "D:\Soft\Drivers.zip" "D:\Soft\Drivers"

Set-VSEnvironment.ps1
Created 2011 Jun

pushd
cd "C:\ProgData\Microsoft Visual Studio 10.0\Common7\Tools"
.\vsvars32.bat
popd

pacman-timer.ps1 from 2015-03

SVN Pacman timer for reference, to find time difference

# Small classic
& 'C:\Python27\ArcGISx6410.2\python.exe' pacman.py -p AlphaBetaAgent -l smallClassic -a depth=4 -k 2
$StartDate=(GET-DATE)
& 'C:\Python27\ArcGISx6410.2\python.exe' pacman.py -p AlphaBetaAgent -l smallClassic -a depth=4 -k 2
$EndDate=(GET-DATE)
NEW-TIMESPAN –Start $StartDateEnd $EndDate

# cmd variations
# test classic
# & 'C:\Python27\ArcGISx6410.2\python.exe' pacman.py -p ReflexAgent -l testClassic
# Medium classic
# & 'C:\Python27\ArcGISx6410.2\python.exe' pacman.py -p ReflexAgent -l MediumClassic -k 2
Clone this wiki locally