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
  • 4,831
  • 5
  • 24
  • 49
Ruben_PH
  • 1,652
  • 7
  • 21
  • 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
  • 39,095
  • 8
  • 48
  • 68