Remove prompt from output

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jabadm
Posts: 7
Joined: 14 Oct 2010 10:04

Remove prompt from output

#1 Post by jabadm » 14 Oct 2010 10:32

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?

amel27
Expert
Posts: 177
Joined: 04 Jun 2010 20:05
Location: Russia

Re: Remove prompt from output

#2 Post by amel27 » 14 Oct 2010 17:48

Code: Select all

@prompt $m
@echo on

jabadm
Posts: 7
Joined: 14 Oct 2010 10:04

Re: Remove prompt from output

#3 Post by jabadm » 15 Oct 2010 06:31

Thanks! I knew it was possible, just couldn't recall!

Blessings!

Post Reply