Passing a link as an argument doesn't work
Trying to avoid repetition by using the link as an argument to the function open12. But I can't make the argument work. It works fine if I don't use an argument for the function but insert the link directly.
Already tried using chrome and edge it didn't work. Also I tried enclosing the link with "" it didn't work either.
It seems to be a really dumb error but I can't find the solution online. I know little about batch scripting though. Thanks for reading.
@echo off
echo 1.lofi Girl
echo 2.beats to Study
set /p option = Que queres escuchar?
if "%option%" == "1" call :open12 https://www.youtube.com/watch?v=5qap5aO4i9A
:open12
start vivaldi %1
goto :eof