"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
|