哇,从来没想过我会在DOS中写任何东西。现在我这么做了,我知道为什么我从不想这样做了。语法太荒谬了!
无论如何,我需要帮助。 我想提示用户输入,如果收到空行,我想使用默认值,像这样:
set name=abraham.
set /p input=please enter your name, press enter to use %name%:
if not %input%=="" set name=%input%
echo your name is %name%
我遇到了一个错误,提示说"set was unexpected at this time."
请问您能帮忙解决吗?