Skip to content

Instantly share code, notes, and snippets.

@mark05e
Last active January 15, 2025 02:37
Show Gist options
  • Save mark05e/eccfb87f5449beb87c38d2983da269b1 to your computer and use it in GitHub Desktop.
Save mark05e/eccfb87f5449beb87c38d2983da269b1 to your computer and use it in GitHub Desktop.
#ref: http://eddiejackson.net/wp/?p=23710
$PPath=$args[0]
Write-Host $PPath
if ($PPath -eq $null){ $PPath = "C:\Temp\" }
$ProcName = "GoogleEarthWin.exe"
$WebFile = "https://dl.google.com/earth/client/advanced/current/GoogleEarthWin.exe"
New-Item -ItemType "directory" -Path $PPath
(New-Object System.Net.WebClient).DownloadFile($WebFile,"$PPath\$ProcName");Start-Process ("$PPath\$ProcName")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment