"The system cannot find the path specified" when trying to use ASCII text in command prompt

0

I have a batch file with the following code

:home
cls
echo  ______     __   __     ______     ______   __  __     ______     ______        _____     ______     __  __        __     __   __        __  __     ______     __         __       
echo /\  __ \   /\ "-.\ \   /\  __ \   /\__  _\ /\ \_\ \   /\  ___\   /\  == \      /\  __-.  /\  __ \   /\ \_\ \      /\ \   /\ "-.\ \      /\ \_\ \   /\  ___\   /\ \       /\ \      
echo \ \  __ \  \ \ \-.  \  \ \ \/\ \  \/_/\ \/ \ \  __ \  \ \  __\   \ \  __<      \ \ \/\ \ \ \  __ \  \ \____ \     \ \ \  \ \ \-.  \     \ \  __ \  \ \  __\   \ \ \____  \ \ \____ 
echo  \ \_\ \_\  \ \_\\"\_\  \ \_____\    \ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\     \ \____-  \ \_\ \_\  \/\_____\     \ \_\  \ \_\\"\_\     \ \_\ \_\  \ \_____\  \ \_____\  \ \_____\
echo   \/_/\/_/   \/_/ \/_/   \/_____/     \/_/   \/_/\/_/   \/_____/   \/_/ /_/      \/____/   \/_/\/_/   \/_____/      \/_/   \/_/ \/_/      \/_/\/_/   \/_____/   \/_____/   \/_____/

set /p web= Do you Proceed?
echo.

if "%web%"=="y" goto start

if "%web%"=="n" goto home
pause.

However, I got "The system cannot find the path specified" error message when running it.

What is the cause?

AridArtifact

Posted 2019-04-15T07:35:46.290

Reputation: 1

1the 3rd line contains a redirection character < which has to be escaped with a caret ^<. – LotPings – 2019-04-15T07:57:22.527

No answers