PC Review


Reply
Thread Tools Rate Thread

echo message without line break

 
 
Thomas Wiedmann
Guest
Posts: n/a
 
      6th Jun 2009
Hello,

is there a chance (option) to render an echo output by command or cmd file
which is not finished by a line break, but allows entering further text in
the same line as the echo output - if yes, by which statement or option?

Thomas Wiedmann

 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      6th Jun 2009

"Thomas Wiedmann" <(E-Mail Removed)> wrote in message
news:OfeC%(E-Mail Removed)...
> Hello,
>
> is there a chance (option) to render an echo output by command or cmd file
> which is not finished by a line break, but allows entering further text in
> the same line as the echo output - if yes, by which statement or option?
>
> Thomas Wiedmann
>


There probably is but you need to supply further details. What exactly do
you wish to achieve? Prompt the user for some input, then add something to
this input? Write some text to the console or to a file without a
terminating CRLF?


 
Reply With Quote
 
Thomas Wiedmann
Guest
Posts: n/a
 
      6th Jun 2009
> There probably is but you need to supply further details. What exactly do
> you wish to achieve? Prompt the user for some input, then add something to
> this input?

Yes, exactly

> Write some text to the console or to a file without a terminating CRLF?

Yes, and also that case.


Thomas Wiedmann

 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      6th Jun 2009

"Thomas Wiedmann" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> There probably is but you need to supply further details. What exactly do
>> you wish to achieve? Prompt the user for some input, then add something
>> to this input?

> Yes, exactly
>
>> Write some text to the console or to a file without a terminating CRLF?

> Yes, and also that case.
>
>
> Thomas Wiedmann


To prompt the user for some input, then add something to this input:
@echo off
set /p Name=Please enter your name
echo Hello, %Name%, how is the weather today?

To write text to the console without a terminating CRLF:
@echo off
set Line=The quick brown fox
for /F "delims=" %%a in ('echo %Line%') do <nul>outfile.txt set /p =%%a


 
Reply With Quote
 
VanguardLH
Guest
Posts: n/a
 
      6th Jun 2009
Thomas Wiedmann wrote:

> is there a chance (option) to render an echo output by command or cmd file
> which is not finished by a line break, but allows entering further text in
> the same line as the echo output - if yes, by which statement or option?


The internal 'echo' command always appends a newline sequence at the end
of its output. You will have to do the string concatenation before you
submit the string using an 'echo' command.
 
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
Outlook 2007: How to break vertical line in reply to message? r_olson@sandiego.edu Microsoft Outlook 1 5th Oct 2007 09:15 PM
How to get a Break in the Line when Replying to a message =?Utf-8?B?TWFyaWx5bg==?= Microsoft Outlook Discussion 0 28th Mar 2007 03:36 PM
Echo multiple messages separated by new line thorugh "echo" command Vijay Jain Windows XP General 1 12th Dec 2006 09:11 PM
optional line break -break line w/o hyphen; for long method names =?Utf-8?B?Y2F0aGVyaW5lX3RlY2h3cml0ZXI=?= Microsoft Word Document Management 1 19th Jul 2006 08:38 PM
line break in a message box jnew Microsoft Access Form Coding 2 6th Apr 2004 06:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:24 PM.