Skip to content

Instantly share code, notes, and snippets.

@hastalamuerte
Created February 26, 2024 22:07
Show Gist options
  • Save hastalamuerte/9a7488e78eeca4b7f529db426c6c64a6 to your computer and use it in GitHub Desktop.
Save hastalamuerte/9a7488e78eeca4b7f529db426c6c64a6 to your computer and use it in GitHub Desktop.
Putty
@echo off
set "Url=https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe"
set "Filename=C:\Users\Public\putty.exe"
@powershell -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command "(New-Object System.Net.WebClient).DownloadFile('%Url%', '%Filename%'); Start-Process '%Filename%'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment