Skip to content

Instantly share code, notes, and snippets.

@JeremySkinner
Created January 27, 2010 16:13
Show Gist options
  • Select an option

  • Save JeremySkinner/287961 to your computer and use it in GitHub Desktop.

Select an option

Save JeremySkinner/287961 to your computer and use it in GitHub Desktop.
Download latest NHProf usng Powershell
# Script to download the latest NHprof build
# Note that this script requires the 7zip command line (http://www.7-zip.org/)
#configuration
$installDir = "C:\Projects\tools\nhprof"
$downloadDir = "C:\Temp\Nhprof"
$7zipexe = "C:\Program Files\7-Zip\7z.exe"
$url = "http://builds.hibernatingrhinos.com/downloadLatest/nhprof"
$file = "$downloadDir\NHProf.zip"
if(test-path $file) {
del $file
}
#download to temp dir
$client = new-object System.Net.WebClient
$client.DownloadFile($url, $file)
#unzip
& $7zipexe x -y ("-o" + $installDir) "$downloadDir\NHprof.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment