Solved [Help] Youtube Channel Redirect Problem

July 17, 2012 at 08:21:07
Specs: Windows 7
Hi, I am trying to make a Youtube channel redirect, when the user types in the channel user name it open up their channel. I have the actual part where the channel opens but I want to give the option to enter in another Youtuber name without reopening the program. This is where it starts to get glitchy...

@echo off
title Youtube Channel Redirect
:start
set /p user= Please enter the username if the Youtubers Channel you would like to watch: 
if %user%== %user% goto :channel
:channel
start www.youtube.com/%user%
cls
set /p new= Would you like to watch another Youtube channel? "Yes" or "No": 
if /i %new%== 'Yes' goto :start
if /i %new%== 'No' goto exit


See More: [Help] Youtube Channel Redirect Problem

Report •

#1
July 17, 2012 at 09:34:58
✔ Best Answer
@echo off
title Youtube Channel Redirect
:start
set /p user= Please enter the username of the Youtubers Channel you would like to

if "%user%"== "" goto :errorMsg
start www.youtube.com/%user%
cls
set /p new= Would you like to watch another Youtube channel? "Yes" or "No":
if /i '%new%'== 'Yes' goto :start
if /i '%new%'== 'No' (
echo Thank you for your using!
goto :eof
)
: errorMsg
echo Invalid input


Report •
Related Solutions


Ask Question