- May
- 13,834
- 211
The construction in the subject is quite likely not to work. When it does work, it echoes the quote following the prompt specification, ans also echos the command (not as documented).
After all that (with many attempts cut) it starts working (wrongly).
And then starts doing nothing again.
Code:
v:\> ? "prompt" echo %_time
v:\> ? "Y or N" echo %_time
v:\> ? "Do you want to see the time?" echo %_time
v:\> ? "1" echo %_time
v:\> ? "12" echo %_time
v:\> ? "a" dir
v:\> ? "y or n or a b c d?" echo %_time
v:\> ? "Do you want to see the time?" echo %_time
v:\> ? "Do you want to see the time?" echo %_time
v:\> ? "Do you want to see the time?" echo %_time
v:\> ? "Do you want to see the time?" echo %_time
v:\> ? "If you want to see the time, press 'y'." echo %_time
v:\> ? "If you want to see the time, press 'y'." echo %_time
After all that (with many attempts cut) it starts working (wrongly).
Code:
v:\> ? "prompt" echo %_time
prompt" echo %_time (Y/N)? N
v:\> ? "y or n or a b c d?" echo %_time
y or n or a b c d?" echo %_time (Y/N)? N
And then starts doing nothing again.
Code:
v:\> ? "Do you want to execute ..." echo %_time
v:\> ? "Do you want to execute ..." echo %_time
v:\> ? "prompt" echo %_time
v:\> ? "Do you want to execute ..." echo %_time
v:\> ? "a" dir
v:\>