0
这是我期望它会完美地运行代码:“输入”是意外在这个时候
@echo off
echo.BASIC LANGUAGE COMPILER
:start
set available=0
set /p input="> "
for /F %%a in ("%input%") do set mainline=%%a
findstr /ri /c:"^ *:%mainline% " /c:"^ *:%input%$" "%~f0" >nul 2>nul && set available=1
echo available : %available%
if %available%==1 (call :%input%) else (echo ERROR 001 : UNAVAILABLE LINE)
set input=
set available=
goto :start
:echo
echo %1 %2 %3
goto :start
:cls
cls
goto :start
但是无论我做到了,它只是相呼应:
错误001:不可用行。
即使我输入echo hi hi hi hi
我能做些什么?哪里有问题?
非常感谢!我的基地环境现在已经确定;我现在可以专注于功能! @MCND谢谢! – Jamie