Skip to content

Instantly share code, notes, and snippets.

@couleurm
Created May 9, 2023 15:34
Show Gist options
  • Save couleurm/82b99d7a92ecc2f3eef5b03810fe19d1 to your computer and use it in GitHub Desktop.
Save couleurm/82b99d7a92ecc2f3eef5b03810fe19d1 to your computer and use it in GitHub Desktop.
Set-Location $PSScriptRoot
[void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$folder = [Microsoft.VisualBasic.Interaction]::InputBox('Titre du dossier', 'Mettez le nom du dossier a creer:')
if ((Test-Path $folder)){
Write-Warning "Le dossier existe déjà"
pause
exit
}
mkdir $folder
$url = [Microsoft.VisualBasic.Interaction]::InputBox('Lien de la video/playlist', 'Collez le lien:')
Push-Location $folder
yt-dlp $url
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment