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

  • Thread starter Thread starter Jim in Arizona
  • Start date Start date
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

--
 
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
 
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 ?
 
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.
 
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
 
Back
Top