echo-ing nothing...

C

Christos Kritikos

hello. I am using 'echo' in a bat file in order to
generate a log file (ie echo "I am now doing blah" >>
mylog.log). I am trying to add a few new-lines in there
to make things a bit more readable. I tried [echo] (it
says echo is on) and [echo " "] (it prints the quotes as
well) and also [echo \ ] (it prints a backslash). Any
ideas how to do this? Maybe echo is not the answer??

thanks
christos
 
P

Phil Robyn

Christos said:
hello. I am using 'echo' in a bat file in order to
generate a log file (ie echo "I am now doing blah" >>
mylog.log). I am trying to add a few new-lines in there
to make things a bit more readable. I tried [echo] (it
says echo is on) and [echo " "] (it prints the quotes as
well) and also [echo \ ] (it prints a backslash). Any
ideas how to do this? Maybe echo is not the answer??

thanks
christos


echo/>>mylog.log
 
J

Joe Richards [MVP]

You go Phil. I had no idea you could do that. Thanks! :blush:)

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net



Phil said:
Christos said:
hello. I am using 'echo' in a bat file in order to generate a log file
(ie echo "I am now doing blah" >> mylog.log). I am trying to add a few
new-lines in there to make things a bit more readable. I tried [echo]
(it says echo is on) and [echo " "] (it prints the quotes as well) and
also [echo \ ] (it prints a backslash). Any ideas how to do this?
Maybe echo is not the answer??

thanks
christos


echo/>>mylog.log
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top