2

I want to be able to concat a new ECHO message to a prior ECHO message, something like this:

Command:

ECHO PROCESSING...
REM some process here
ECHO DONE

Result:

PROCESSING...
DONE

What I want as a result is this

PROCESSING...DONE

I will first echo the "PROCESSING..." message, and then after my process is done, I would like to be able to append the "DONE" message at the end.

unclemeat
  • 5,029
  • 5
  • 28
  • 52
Ruben_PH
  • 1,692
  • 7
  • 25
  • 42
  • Possible duplicate of [Windows batch: echo without new line](https://stackoverflow.com/questions/7105433/windows-batch-echo-without-new-line) – GlennFromIowa Jul 10 '18 at 23:04

1 Answers1

3

This is an undocumented use of the set /p command:

@echo off
set /p =PROCESSING... <nul
REM some process here
ECHO DONE
pause
foxidrive
  • 40,353
  • 10
  • 53
  • 68
  • This will only work if your processes between the `set` command and the `echo` command do not output anything. This is still pretty clever – Alex May 17 '14 at 04:38