Skip to content

Instantly share code, notes, and snippets.

@b4284
Created May 13, 2024 09:41
Show Gist options
  • Save b4284/2c0abebc772a77eee2edd9fc4d0113d5 to your computer and use it in GitHub Desktop.
Save b4284/2c0abebc772a77eee2edd9fc4d0113d5 to your computer and use it in GitHub Desktop.
$outpath = (Join-Path "$env:USERPROFILE" "Downloads" "yt-dlp.exe")
try {
Invoke-WebRequest "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe" -OutFile "$outpath"
echo "update success: $outpath"
} catch {
echo "update fail: $outpath"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment