Skip to content

Instantly share code, notes, and snippets.

@harmony7
Created October 1, 2013 01:46
Show Gist options
  • Save harmony7/6772868 to your computer and use it in GitHub Desktop.
Save harmony7/6772868 to your computer and use it in GitHub Desktop.
Obtain a copy of mercurial
$filename = "tortoisehg-2.9.1-hg-2.7.1-x64.msi"
$source = "http://bitbucket.org/tortoisehg/files/downloads/$filename"
$destination = ".\$filename"
write-host "`nDownloading $source to $destination."
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($source, $destination)
write-host "`nDone."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment