Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

? "prompt" command

May
12,845
164
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).
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:\>
 
This was for compatibility with DR-DOS 7, and has been obsolete for > 20 years.

Do you actually have a need for it?
I can't speak for others. If it goes away I won't miss it. If it stays it should be fixed.
 

Similar threads

Back
Top