我是批处理脚本的新手。我想知道是否有办法在不使用choice.exe 的情况下编写定时提示,因为我使用的是windows xp。类似于以下内容:
@echo off
/set p answer=input y or n in 30 seconds
rem start timer
if answer==y(
goto :action1
)
if answer==n(
goto action2
)
rem if timer has expired without input go to :action1
:action 1
echo you have entered y
:action 2
echo you have entered n
谢谢你的提示。