PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jim in Arizona
Guest
Posts: n/a
 
      12th Mar 2009
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

--



 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      12th Mar 2009

"Jim in Arizona" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
Jim in Arizona
Guest
Posts: n/a
 
      12th Mar 2009
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 ?

--

"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Jim in Arizona" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>
>



 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      12th Mar 2009
"Jim in Arizona" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a
 
      15th Mar 2009

"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Jim in Arizona" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.


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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Echo output to file as ANSI and NOT as Unicode? Matt Solob Windows XP General 2 24th May 2008 06:21 PM
How to Echo output to file as ANSI and NOT as Unicode? Matt Solob Windows XP Help 2 24th May 2008 06:21 PM
Unwanted Extra Blank Lines Appear When Outputting to Text File =?Utf-8?B?TWFyeQ==?= Microsoft Access 0 9th Aug 2006 06:12 AM
Blank lines in report output (to text file) =?Utf-8?B?SGFycnkgVg==?= Microsoft Access Reports 2 8th Dec 2005 06:47 PM
Blank lines in text output files AlvinET Microsoft Access Reports 1 18th Jan 2004 03:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 AM.