Page 1 of 1

Remove prompt from output

Posted: 14 Oct 2010 10:32
by jabadm
When echo is on I'd like to have the command displayed without the C:\> (or other drive) prompt. For example, a batch file with a single command:

ren test test01

...will output...

C:\>ren test test01

...when run. I'd much rather not see the prompt C:\> before the command. For me...

ren test test01

...is much cleaner output.

Is this possible in a simple way?

Re: Remove prompt from output

Posted: 14 Oct 2010 10:50
by !k
Read prompt/?

Re: Remove prompt from output

Posted: 14 Oct 2010 11:06
by jabadm
I'm sorry for the confusion. by 'prompt' I'm referring to 'C:\>' that prints at the beginning of each line. Is there another name for this piece of the command window?

Re: Remove prompt from output

Posted: 16 Oct 2010 06:41
by aGerman
!k is right. The PROMPT command is able to change it.
Try
prompt $
to disable the prompt and write
prompt
to return to your default prompt.

Regards
aGerman

Re: Remove prompt from output

Posted: 16 Oct 2010 06:49
by jabadm
Got it! Thanks so much!