Skip to content

Instantly share code, notes, and snippets.

@XMB5
Last active November 27, 2018 01:55
Show Gist options
  • Save XMB5/05c82b70760e26bc5256bdcae9550476 to your computer and use it in GitHub Desktop.
Save XMB5/05c82b70760e26bc5256bdcae9550476 to your computer and use it in GitHub Desktop.
#iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/fpzIR'))
cd ~\Desktop
Import-Module BitsTransfer
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory(
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($zipfile),
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($outpath))
}
Write-Output 'downloading webstorm...'
Start-BitsTransfer -Source 'https://dl.dropboxusercontent.com/s/uf8mg80wjuiifzf/WebStorm%202018.3.zip' -Destination webstorm.zip
Write-Output 'downloading explorer++...'
Start-BitsTransfer -Source 'https://dl.dropboxusercontent.com/s/2tyq4r9c44g44wd/explorer%2B%2B_x64.zip' -Destination exp.zip
Write-Output 'unzipping webstorm...'
Unzip .\webstorm.zip .\webstorm
Write-Output 'unzipping explorer++...'
Unzip .\exp.zip .\exp
Write-Output 'finishing...'
Move-Item -Path .\exp\Explorer++.exe -Destination .\
Move-Item -Path '.\webstorm\WebStorm 2018.3' -Destination .\
Remove-Item -Path .\exp.zip
Remove-Item -Path .\exp -Recurse
Remove-Item -Path .\webstorm.zip
Remove-Item -Path .\webstorm -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment