adding a few blank lines as output to a text file using ECHO

J

Jim in Arizona

I'm tring to add a few line breaks but can't recall how to do it.

echo %date% %time% >> c:\echotest.txt
echo
echo
xcopy /? >> c:\echotest.txt

The above does not add two blank lines like I would like it.

Finding the solution online doesn't return any useful results. All I get is
PHP and Unix returns.

TIA,
Jim

--
 
P

Pegasus [MVP]

Jim in Arizona said:
I'm tring to add a few line breaks but can't recall how to do it.

echo %date% %time% >> c:\echotest.txt
echo
echo
xcopy /? >> c:\echotest.txt

The above does not add two blank lines like I would like it.

Finding the solution online doesn't return any useful results. All I get
is PHP and Unix returns.

TIA,
Jim

Try
echo.>> c:\echotest.txt
or
echo\>> c:\echotest.txt
 
J

Jim in Arizona

The period! That's right. I just couldn't remember!

Thanks lots!

by the way. Why is this newsgroup so quiet? I remember there being a lot
more activity in the not so long ago past. Is it the win2000 prefix that
drops the group off the radar? Maybe we should request a change somehow so
this place isn't overlooked. Maybe
microsoft.public.windows.server.commandline ?
 
P

Pegasus [MVP]

Jim in Arizona said:
The period! That's right. I just couldn't remember!

Thanks lots!

by the way. Why is this newsgroup so quiet? I remember there being a lot
more activity in the not so long ago past. Is it the win2000 prefix that
drops the group off the radar? Maybe we should request a change somehow so
this place isn't overlooked. Maybe
microsoft.public.windows.server.commandline ?

It's probably the strange name that fails to attract posters. If you want to
see some action, post in alt.msdos.batch.nt. There are a few wolves in that
group who will throw themselves hungrily over every post they can see, and
by the time they are finished with it you would know far more about every
possible angle of your question than you ever dreamed was possible.
 
A

Al Dunbar

Pegasus said:
It's probably the strange name that fails to attract posters. If you want
to see some action, post in alt.msdos.batch.nt. There are a few wolves in
that group who will throw themselves hungrily over every post they can
see, and by the time they are finished with it you would know far more
about every possible angle of your question than you ever dreamed was
possible.

Another factor might be the tendency of some of us at
microsoft.public.scripting.vbscript to answer batch-related questions that
are asked there by people who do not know about this newsgroup. ;-)

/Al
 

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